Skip to content

Commit af9b7aa

Browse files
committed
added simple blue/gray theme
1 parent f5bb2af commit af9b7aa

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

main/WebServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ namespace http {
613613
{
614614
root["status"] = "OK";
615615
root["title"] = "GetThemes";
616+
m_mainworker.GetAvailableWebThemes();
616617
std::vector<std::string>::const_iterator itt;
617618
int ii = 0;
618619
for (itt = m_mainworker.m_webthemes.begin(); itt != m_mainworker.m_webthemes.end(); ++itt)

main/mainworker.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ class MainWorker
105105
bool m_bHaveDownloadedDomoticzUpdate;
106106
bool m_bHaveDownloadedDomoticzUpdateSuccessFull;
107107

108+
void GetAvailableWebThemes();
109+
108110
tcp::server::CTCPServer m_sharedserver;
109111
std::string m_LastSunriseSet;
110112
std::vector<std::string> m_webthemes;
111113
private:
112-
void GetAvailableWebThemes();
113114
void HandleAutomaticBackups();
114115
unsigned long long PerformRealActionFromDomoticzClient(const unsigned char *pRXCommand, CDomoticzHardwareBase **pOriginalHardware);
115116
std::string m_LastDeviceName;

www/styles/simple-blue/custom.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
Default Simple Blue theme for Domoticz
3+
*/
4+
body {
5+
background-image: -webkit-gradient(
6+
linear,
7+
left top,
8+
left bottom,
9+
color-stop(0, #120B8F),
10+
color-stop(0.5, #4E89E6),
11+
color-stop(1, #120B8F)
12+
);
13+
background-image: -o-linear-gradient(bottom, #120B8F 0%, #4E89E6 50%, #120B8F 100%);
14+
background-image: -moz-linear-gradient(bottom, #120B8F 0%, #4E89E6 50%, #120B8F 100%);
15+
background-image: -webkit-linear-gradient(bottom, #120B8F 0%, #4E89E6 50%, #120B8F 100%);
16+
background-image: -ms-linear-gradient(bottom, #120B8F 0%, #4E89E6 50%, #120B8F 100%);
17+
background-image: linear-gradient(to bottom, #120B8F 0%, #4E89E6 50%, #120B8F 100%)
18+
}

www/styles/simple-gray/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
Default Simple Gray theme for Domoticz
3+
*/
4+
body {
5+
background: #606c88; /* Old browsers */
6+
background: -moz-linear-gradient(top, #606c88 0%, #3f4c6b 100%); /* FF3.6+ */
7+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b)); /* Chrome,Safari4+ */
8+
background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Chrome10+,Safari5.1+ */
9+
background: -o-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Opera 11.10+ */
10+
background: -ms-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* IE10+ */
11+
background: linear-gradient(to bottom, #606c88 0%,#3f4c6b 100%); /* W3C */
12+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
13+
}

0 commit comments

Comments
 (0)