From df1a80ed426f5bb4cc2c3b61ac1232cb8596c6b5 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 20 Jan 2024 01:14:36 +0000 Subject: [PATCH] Rework alert styling --- .../io/xpipe/app/resources/style/alert.css | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/app/src/main/resources/io/xpipe/app/resources/style/alert.css b/app/src/main/resources/io/xpipe/app/resources/style/alert.css index 92f5b813..0826956a 100644 --- a/app/src/main/resources/io/xpipe/app/resources/style/alert.css +++ b/app/src/main/resources/io/xpipe/app/resources/style/alert.css @@ -1,21 +1,23 @@ .dialog-pane .button { --fx-font-size: 0.8em; --fx-border-width: 1px; --fx-border-radius: 2px; --fx-background-radius: 2px; + -fx-font-size: 0.8em; + -fx-border-width: 1px; + -fx-border-radius: 2px; + -fx-background-radius: 2px; + -fx-padding: 6; } .dialog-pane:no-header > * { -fx-padding: 0; } -.dialog-pane:no-header > *.button-bar > *.container { --fx-border-width: 1px 0 0 0; --fx-border-color: -color-neutral-emphasis; +.dialog-pane > *.button-bar > *.container { + -fx-padding: 12; + -fx-border-color: -color-border-default; + -fx-background-color: -color-bg-subtle; } .dialog-pane:header .header-panel { --fx-background-color: -color-neutral-muted; +-fx-background-color: -color-bg-default; } .dialog-pane:header .header-panel .graphic-container { @@ -25,9 +27,9 @@ .dialog-pane:header > .content { -fx-border-width: 2px 0 0 0; -fx-border-color:-color-accent-fg; --fx-background-color: -color-neutral-muted; +-fx-background-color: -color-bg-default; -fx-border-insets: 0 1.333em 1em 1em; - -fx-padding: 1.333em 0 0 0; + -fx-padding: 0.7em 0 0 0; } .content-text { @@ -48,11 +50,6 @@ -fx-pref-height: 2em; } -.dialog-pane:header > *.button-bar > *.container { --fx-border-width: 1px 0 0 0; --fx-border-color: -color-neutral-emphasis; -} - .dialog-pane:header > *.label.content{ -fx-font-size: 0.8em; }