From c04c097d52c33311eb3f6aae5080199742ddc6c2 Mon Sep 17 00:00:00 2001 From: Radek Davidek Date: Fri, 15 Oct 2021 14:13:35 +0200 Subject: [PATCH] dark theme --- .../java/cz/kamma/mining/bean/MiningBean.java | 6 +- src/main/webapp/ajaxview.jsp | 2 +- src/main/webapp/css/default-theme.css | 120 +++++++++--------- 3 files changed, 66 insertions(+), 62 deletions(-) diff --git a/src/main/java/cz/kamma/mining/bean/MiningBean.java b/src/main/java/cz/kamma/mining/bean/MiningBean.java index c54dc2f..f4db502 100644 --- a/src/main/java/cz/kamma/mining/bean/MiningBean.java +++ b/src/main/java/cz/kamma/mining/bean/MiningBean.java @@ -90,9 +90,9 @@ public class MiningBean { wi.setKey(symbol.concat("/").concat(currency.toUpperCase())); wi.setValue(resultStr); if (change>0) - wi.setColor("GREEN"); + wi.setColor("#00FF99"); else - wi.setColor("RED"); + wi.setColor("#FF5050"); prices.add(wi); } @@ -519,7 +519,7 @@ public class MiningBean { String tmp = ""; for (KeyValue kv : prices) { if (kv.getColor()==null) - kv.setColor("BLUE"); + kv.setColor("#00CCFF"); tmp = tmp.concat("").concat( kv.getKey().concat("").concat("").concat(kv.getValue()).concat("").concat("").concat(kv.getColor()).concat("")); } diff --git a/src/main/webapp/ajaxview.jsp b/src/main/webapp/ajaxview.jsp index 353a5b6..84afea0 100644 --- a/src/main/webapp/ajaxview.jsp +++ b/src/main/webapp/ajaxview.jsp @@ -12,7 +12,7 @@ Mining Info + src="client.js?ver=<%=System.currentTimeMillis()%>">
diff --git a/src/main/webapp/css/default-theme.css b/src/main/webapp/css/default-theme.css index f696e7a..f7ba187 100644 --- a/src/main/webapp/css/default-theme.css +++ b/src/main/webapp/css/default-theme.css @@ -1,79 +1,83 @@ body { - margin: 0; - font-family: Helvetica; - background: #FFFFFF; - color: #000000; - overflow-x: hidden; + margin: 0; + font-family: Helvetica; + background: #424242; + color: rgb(202, 202, 0); + overflow-x: hidden; } -body > *:not(.toolbar) { - position: absolute; - margin: 0; - padding: 0; - left: 0; - top: 45px; - width: 100%; - height: auto; - min-height: 415px; +body>*:not(.toolbar) { + position: absolute; + margin: 0; + padding: 0; + left: 0; + top: 45px; + width: 100%; + height: auto; + min-height: 415px; } /************************************************************************************************/ -body > .toolbar { - box-sizing: border-box; - border-bottom: 1px solid #2d3642; - border-top: 1px solid #6d84a2; - padding: 0 10px 10px 10px; - height: 45px; - background: #6d84a2 repeat-x; +body>.toolbar { + box-sizing: border-box; + border-bottom: 1px solid #2d3642; + border-top: 1px solid #6d84a2; + padding: 0 10px 10px 10px; + height: 45px; + background: #6d84a2 repeat-x; } -.toolbar > h1 { - position: absolute; - overflow: hidden; - left: 0%; - margin: 1px 0 0 -1px; - padding-top: 10px; - height: 45px; - font-size: 20px; - width: 100%; - font-weight: bold; - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; - text-align: center; - text-overflow: ellipsis; - white-space: nowrap; - color: #FFFFFF; +.toolbar>h1 { + position: absolute; + overflow: hidden; + left: 0%; + margin: 1px 0 0 -1px; + padding-top: 10px; + height: 45px; + font-size: 20px; + width: 100%; + font-weight: bold; + text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; + color: #FFFFFF; } /************************************************************************************************/ +body>ul>li { + position: relative; + margin: 0; + border-bottom: 1px solid #E0E0E0; + padding: 8px 0 8px 10px; + font-size: 17px; + font-weight: bold; + list-style: none; +} - -body > ul > li { - position: relative; - margin: 0; - border-bottom: 1px solid #E0E0E0; - padding: 8px 0 8px 10px; - font-size: 17px; - font-weight: bold; - list-style: none; +a { + color: rgb(3, 203, 33); + font-weight: bold; + font-style: normal; + text-decoration: none; } .group { - position: relative; - top: -1px; - margin-bottom: -2px; - border-top: 1px solid #7d7d7d; - border-bottom: 1px solid #999999; - padding: 1px 10px; - font-weight: bold; - text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; - color: #FFFFFF; - opacity:0.7; - background: #c8c8c8 repeat-x; - + position: relative; + top: -1px; + margin-bottom: -2px; + border-top: 1px solid #7d7d7d; + border-bottom: 1px solid #999999; + padding: 1px 10px; + font-weight: bold; + text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; + color: #FFFFFF; + opacity: 0.7; + background: #c8c8c8 repeat-x; } .value { - color: #55AA55; + color: #55AA55; float: right; padding: 0 8px; } \ No newline at end of file