From ac9b0ea467904c61f8ee479c33c00dd9420f638c Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 9 Sep 2024 14:09:42 +0000 Subject: [PATCH] Toggle style fixes --- .../io/xpipe/app/resources/style/style.css | 12 ------------ .../app/resources/style/toggle-switch-comp.css | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/src/main/resources/io/xpipe/app/resources/style/style.css b/app/src/main/resources/io/xpipe/app/resources/style/style.css index ee86eece4..b157aa3bc 100644 --- a/app/src/main/resources/io/xpipe/app/resources/style/style.css +++ b/app/src/main/resources/io/xpipe/app/resources/style/style.css @@ -67,18 +67,6 @@ -fx-border-radius: 0 6 0 0; } -.toggle-switch-comp:has-graphic .label { - -fx-font-size: 1.7em; -} - -.toggle-switch-comp:has-graphic { - -fx-font-size: 0.75em; -} - -.toggle-switch-comp .label-container { - -fx-padding: -0.2em 0 0 0; -} - .store-layout .split-pane-divider { -fx-background-color: transparent; } diff --git a/app/src/main/resources/io/xpipe/app/resources/style/toggle-switch-comp.css b/app/src/main/resources/io/xpipe/app/resources/style/toggle-switch-comp.css index a57e7e097..e3703327e 100644 --- a/app/src/main/resources/io/xpipe/app/resources/style/toggle-switch-comp.css +++ b/app/src/main/resources/io/xpipe/app/resources/style/toggle-switch-comp.css @@ -1,3 +1,19 @@ .toggle-switch-comp:hover > .thumb-area, .root:key-navigation .toggle-switch-comp:focused > .thumb-area { -fx-background-color: -color-neutral-emphasis; +} + +.toggle-switch-comp:has-graphic .label { + -fx-font-size: 1.7em; +} + +.toggle-switch-comp:has-graphic { + -fx-font-size: 0.75em; +} + +.toggle-switch-comp .label-container { + -fx-padding: -0.2em 0 0 0; +} + +.root:linux .toggle-switch-comp .label-container { + -fx-padding: -0.05em 0 0 0; } \ No newline at end of file