From 2828a6df64a96fb6845ca3bbafb4fac992745539 Mon Sep 17 00:00:00 2001 From: Alex Dev Sm Date: Tue, 18 Jun 2019 21:37:34 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=D0=92=D0=B5=D1=80=D0=BD=D1=83=D0=BB=20?= =?UTF-8?q?=D0=B3=D0=B0=D0=BB=D0=BE=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Launcher/runtime/dialog/styles.css | 66 ++++++++++++++++++++++++++---- 1 file changed, 57 insertions(+), 9 deletions(-) diff --git a/Launcher/runtime/dialog/styles.css b/Launcher/runtime/dialog/styles.css index 7fe88772..b2b2f356 100644 --- a/Launcher/runtime/dialog/styles.css +++ b/Launcher/runtime/dialog/styles.css @@ -1,13 +1,66 @@ -/*-- DrLeonardo Design --*/ -Button, CheckBox, ComboBox, RadioButton { - -fx-cursor: hand; -} +/*-- Without jfoenix --*/ Button { -fx-background-color: TRANSPARENT, TRANSPARENT, TRANSPARENT, TRANSPARENT; -fx-background-radius: 3px; -fx-background-insets: 0px; } +CheckBox .box-container { + -fx-shape: "M 400 100 L 400 100 A 50 50 0 1 1 400 250 A 50 50 0 1 1 400 100 "; + -fx-padding: 10; +} + +CheckBox .box, +CheckBox:indeterminate .box, +CheckBox:indeterminate:selected .box{ + -fx-pref-width: 18; + -fx-pref-height: 18; + + -fx-background-color: TRANSPARENT; + -fx-background-radius: 2; + + -fx-border-color: #909090; + -fx-border-style: solid; + -fx-border-radius: 2; + -fx-border-width: 2; +} + +CheckBox:selected .box { + -fx-border-color: #5fd97a; + -fx-background-color: #5fd97a; +} + +CheckBox .mark { + -fx-background-color: TRANSPARENT; +} + +CheckBox:selected .mark { + -fx-shape: "M384 690l452-452 60 60-512 512-238-238 60-60z"; + -fx-max-width: 15; + -fx-max-height: 12; + + -fx-background-color: WHITE; + + -fx-border-color: WHITE; + -fx-border-width: 2; + -fx-border-radius: 2; +} + +CheckBox .indeterminate-mark{ + -fx-background-color: #5fd97a; + -fx-background-radius: 2; + -fx-border-width: 0; + -fx-max-width: 10; + -fx-max-height: 10; +} + + +/*-- DrLeonardo Design --*/ +Button, CheckBox, ComboBox, RadioButton { + -fx-cursor: hand; +} + + /* Backgrounds */ #layout { -fx-background-color: transparent; @@ -317,11 +370,6 @@ .description-text { -fx-font-size: 12px; } -.checkboxOpt { - -jfx-checked-color: #5fd97a; - -jfx-unchecked-color: #909090; -} - .modname { -fx-text-fill: #323232; }