New dark theme
Moderator: leecollings
- Siewert308SW
- Posts: 288
- Joined: Monday 29 December 2014 15:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: New dark theme
Thx for your work.
It really looks great...
thx
It really looks great...
thx
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
New dark theme
Thanks for your messages! Good to see you like this theme
The devices are also showing some more information in the small colored bar at the top left (standard Domoticz functionality).
White -> normal
Blue -> protected device
Red -> not updated for a while
Yellow -> battery almost empty
The bars are small but usefull
See the examples below.
The devices are also showing some more information in the small colored bar at the top left (standard Domoticz functionality).
White -> normal
Blue -> protected device
Red -> not updated for a while
Yellow -> battery almost empty
The bars are small but usefull
See the examples below.
Last edited by G3rard on Tuesday 24 January 2017 21:40, edited 1 time in total.
Not using Domoticz anymore
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: New dark theme
Would be great if you can contribute. I re-used another theme and there are probably some parts which are not needed anymore or some parts which can be done better/easier. Would be nice if you can propose your changes via Github pull requests.Sergio wrote:Nice theme G3rard! I really like it.
I like messing with web pages. I'll try to contribute whenever I have time.
For example in spanish as the words are much longer, the bottom buttons on switches wrap on to two lines.
If you reduce left and/or right margins only two points total on ".btnsmall, .btnsmall-dis" tag it will fit on a single line without messing anything.
I also saw that on my iPad the buttons on the Weather tab (which include Forecast) are wrapping to two lines.
If I change
Code: Select all
margin-right: 15 px
Code: Select all
margin-right: 12px
.btnsmall, .btnsmall-dis
.btnsmall-sel
.btnsmall:hover,
.btnsmall-sel:hover,
.btnsmall-dis:hover
this is all showed on 1 line (last parts are for selected button and when hovering). Is that fine for you as well?
If so then I will update the code.
Not using Domoticz anymore
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: New dark theme
You're right. I will have a look at it, but not in the coming days.NietGiftig wrote:I'm using this one now, nice & clean
Thanks for sharing
Very minor question
The selector switch in button mode has white bg/black letters for unselected buttons, they become Grey/yellow when you hover over them.
Is it possible to change this the other way round. or tell me where I can change it.
It makes the dark side of the theme darker
But you can already try to change it in this part https://github.com/gerard33/dark-th3me/ ... m.css#L239.
Let us know what the results are .
Not using Domoticz anymore
-
- Posts: 32
- Joined: Sunday 08 January 2017 18:59
- Target OS: Windows
- Domoticz version:
- Contact:
Re: New dark theme
Nice theme buddy.
Really liking it!
Really liking it!
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: New dark theme
Implemented it last night...
Looks nice.
Gonna change the background to a more darker one.
However it takes a lot of time to display. I also found out why.
Unfortunatly, my tablets are restricted to access internet.
Within the .css there are the font-imports from google.
Not a big deal. I already downloaded a zip from google-fonts an github. Being busy to convert the import to locally hosted fonts.
Having the same issues with other templates and frontpages for now.
Hopefully someone will implement it with local fonts
Looks nice.
Gonna change the background to a more darker one.
However it takes a lot of time to display. I also found out why.
Unfortunatly, my tablets are restricted to access internet.
Within the .css there are the font-imports from google.
Not a big deal. I already downloaded a zip from google-fonts an github. Being busy to convert the import to locally hosted fonts.
Having the same issues with other templates and frontpages for now.
Hopefully someone will implement it with local fonts
-
- Posts: 39
- Joined: Friday 12 December 2014 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: New dark theme
The only thing I touched was:G3rard wrote: I also saw that on my iPad the buttons on the Weather tab (which include Forecast) are wrapping to two lines.
If I changetoCode: Select all
margin-right: 15 px
forCode: Select all
margin-right: 12px
.btnsmall, .btnsmall-dis
.btnsmall-sel
.btnsmall:hover,
.btnsmall-sel:hover,
.btnsmall-dis:hover
this is all showed on 1 line (last parts are for selected button and when hovering). Is that fine for you as well?
If so then I will update the code.
Code: Select all
.btnsmall,
.btnsmall-dis {
margin-top: 2px;
margin-bottom: 1px;
margin-left: -16px;
margin-right: 14px;
...
Perhaps you can try it by reducing from both sides.
-
- Posts: 39
- Joined: Friday 12 December 2014 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: New dark theme
I've done nice things with embedded elements in css, but you must be aware that as the html files get bigger (themselves or linked elements), the whole system gets sluggish.stlaha2007 wrote:Hopefully someone will implement it with local fonts
In that case I use a minimizer. But due to the "open" and "runtime developing" nature of this files, that could be a problem.
The minimizer can also be implemented at the web server level and always raises the interface performance.
-
- Posts: 121
- Joined: Sunday 11 October 2015 8:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.6224
- Location: Holland
- Contact:
Re: New dark theme
+1 from mestlaha2007 wrote: However it takes a lot of time to display. I also found out why.
Unfortunatly, my tablets are restricted to access internet.
Within the .css there are the font-imports from google.
Not a big deal. I already downloaded a zip from google-fonts an github. Being busy to convert the import to locally hosted fonts.
Having the same issues with other templates and frontpages for now.
Hopefully someone will implement it with local fonts
Very much +1
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: New dark theme
Already implemented it...
Trick is to use e few more lines and download the .ttf file.
Good example is the theme Arcadia... Instead of import are a few extra lines which define font-face etcetera including local and filepath/filename.
Easiest way is to search the forum for the Arcedia theme, download and extract it. Copy the first 4 font-blocks over the 4 import-blocks and copy/move the font-directory into the theme folder.
@G3rard: Please; Can you update it on github yourself so we all can benefit from this little tweak?
Trick is to use e few more lines and download the .ttf file.
Good example is the theme Arcadia... Instead of import are a few extra lines which define font-face etcetera including local and filepath/filename.
Easiest way is to search the forum for the Arcedia theme, download and extract it. Copy the first 4 font-blocks over the 4 import-blocks and copy/move the font-directory into the theme folder.
@G3rard: Please; Can you update it on github yourself so we all can benefit from this little tweak?
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: New dark theme
I have updated the theme to load the Ubuntu font from a local folder.
Latest version is on Gibthub https://github.com/gerard33/dark-th3me.
Latest version is on Gibthub https://github.com/gerard33/dark-th3me.
Not using Domoticz anymore
-
- Posts: 39
- Joined: Friday 12 December 2014 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: New dark theme
I'll also try it and tell you if it also solves the wrapping buttons in Spanish.
Enviado desde mi A0001 mediante Tapatalk
Enviado desde mi A0001 mediante Tapatalk
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: New dark theme
I have not changed that yetSergio wrote:I'll also try it and tell you if it also solves the wrapping buttons in Spanish.
Enviado desde mi A0001 mediante Tapatalk
So wait a few minutes please
Edit: done, so you can test it now.
Not using Domoticz anymore
-
- Posts: 39
- Joined: Friday 12 December 2014 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: New dark theme
Ok
Enviado desde mi A0001 mediante Tapatalk
Enviado desde mi A0001 mediante Tapatalk
-
- Posts: 39
- Joined: Friday 12 December 2014 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: New dark theme
Enviado desde mi A0001 mediante Tapatalk
-
- Posts: 121
- Joined: Sunday 11 October 2015 8:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.6224
- Location: Holland
- Contact:
Re: New dark theme
I have bee trying to do this, but to little knowledge of HTML/CSS i am afraidG3rard wrote:You're right. I will have a look at it, but not in the coming days.NietGiftig wrote: The selector switch in button mode has white bg/black letters for unselected buttons, they become Grey/yellow when you hover over them.
But you can already try to change it in this part https://github.com/gerard33/dark-th3me/ ... m.css#L239.
Let us know what the results are .
I guess I have to copy some relevant lines from the styles.css to the custom.css???
I keep trying
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: New dark theme
You only have to change custom.css.
See the opening post:
The quickest way to test changes to the theme is via the development console in Chrome (open it with F12).
- choose the Sources tab
- choose acctheme and custom.css
- any changes will be visible directly
- if you want to implement these changes then edit these in domoticz/www/styles/dark-th3me/custom.css
Just try to change something from line 239 and further and you will directly see the results.
It's a lot of trial and error
See the opening post:
The quickest way to test changes to the theme is via the development console in Chrome (open it with F12).
- choose the Sources tab
- choose acctheme and custom.css
- any changes will be visible directly
- if you want to implement these changes then edit these in domoticz/www/styles/dark-th3me/custom.css
Just try to change something from line 239 and further and you will directly see the results.
It's a lot of trial and error
Not using Domoticz anymore
-
- Posts: 24
- Joined: Thursday 07 January 2016 7:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New dark theme
Thanks G3rard ! Really nice theme
-
- Posts: 2
- Joined: Friday 26 August 2016 22:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Serbia
- Contact:
Re: New dark theme
Thank you for sharing.
Excellent work.
Excellent work.
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: RE: Re: New dark theme
Double Thanks !G3rard wrote:I have updated the theme to load the Ubuntu font from a local folder.
Latest version is on Gibthub https://github.com/gerard33/dark-th3me.
Who is online
Users browsing this forum: No registered users and 1 guest