From ab6b3e020695e08b73fbe8273b867ed5523ad266 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Thu, 24 Oct 2019 01:58:56 +0300 Subject: [PATCH] Update checkboxes in dark theme --- pom.xml | 2 +- src/main/java/nsusbloader/NSLMain.java | 2 +- src/main/resources/res/app_dark.css | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 14ebdb0..e8b13d9 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ NS-USBloader ns-usbloader - 0.8.1-SNAPSHOT + 0.8.2-SNAPSHOT https://github.com/developersu/ns-usbloader/ diff --git a/src/main/java/nsusbloader/NSLMain.java b/src/main/java/nsusbloader/NSLMain.java index fe554fe..c932841 100644 --- a/src/main/java/nsusbloader/NSLMain.java +++ b/src/main/java/nsusbloader/NSLMain.java @@ -12,7 +12,7 @@ import java.util.Locale; import java.util.ResourceBundle; public class NSLMain extends Application { - public static final String appVersion = "v0.8.1"; + public static final String appVersion = "v0.8.2"; @Override public void start(Stage primaryStage) throws Exception{ FXMLLoader loader = new FXMLLoader(getClass().getResource("/NSLMain.fxml")); diff --git a/src/main/resources/res/app_dark.css b/src/main/resources/res/app_dark.css index 43ed268..ce8e6cb 100644 --- a/src/main/resources/res/app_dark.css +++ b/src/main/resources/res/app_dark.css @@ -300,6 +300,22 @@ -fx-background-insets: 0 4 0 4; -fx-background-radius : 5; } +/*-======================= Check Box =====================-*/ +.check-box .box, .check-box:selected .box { + -fx-background-color: #4f4f4f; + -fx-border-color: #4f4f4f; + -fx-border-radius: 3px; +} + +.check-box:hover .box, .check-box:selected:hover .box { + -fx-background-color: #4f4f4f; + -fx-border-color: #a4ffff; + -fx-border-radius: 3px; +} + +.check-box:selected .mark { + -fx-background-color: #eea11e; +} /***********************************************************/ .regionUpload{ -fx-shape: "M 4.0078125,0 C 1.5078125,0 0,1.4882812 0,3.984375 V 15.988281 C 0,18.417969 1.4927148,20 4.0078125,20 H 6.5 V 0 Z M 15,2.9 7,13 h 5 c 0,1.661689 -0.0097,6.246588 -0.0098,7.011719 H 18 V 13 h 5 z M 23.5,0 v 20 c 1.004057,-7.06e-4 1.659943,0 2.492187,0 C 28.414063,20 30,18.496094 30,15.996094 V 3.9765625 C 30,1.5195311 28.508727,0 26.003907,0 Z M 3.1015625,2.9570312 C 4.1485235,2.9562481 4.9977514,3.8046013 4.9980469,4.8515625 4.998831,5.8992865 4.1492865,6.748831 3.1015625,6.7480469 2.0546013,6.7477514 1.2062481,5.8985235 1.2070312,4.8515625 1.2073268,3.8053642 2.0553642,2.9573267 3.1015625,2.9570312 Z M 26.865234,11.148438 c 1.047724,-7.85e-4 1.897269,0.84876 1.896485,1.896484 -2.96e-4,1.046961 -0.849524,1.895314 -1.896485,1.894531 -1.046198,-2.95e-4 -1.894235,-0.848333 -1.894531,-1.894531 -7.83e-4,-1.046961 0.84757,-1.896189 1.894531,-1.896484 z";