From 217209997fe045f3c17c5aab9bbd69c2ccb22d99 Mon Sep 17 00:00:00 2001 From: Julian Kropff Date: Thu, 7 May 2026 16:15:54 +0200 Subject: [PATCH] Style: fix Game Ui default theme --- .../resources/ui-structure/Casinogameui.css | 191 +++++++++++++++++- 1 file changed, 187 insertions(+), 4 deletions(-) diff --git a/src/main/resources/ui-structure/Casinogameui.css b/src/main/resources/ui-structure/Casinogameui.css index 4ac89cc..c645024 100644 --- a/src/main/resources/ui-structure/Casinogameui.css +++ b/src/main/resources/ui-structure/Casinogameui.css @@ -174,7 +174,12 @@ .gray-button { -fx-background-color: #333333; -fx-border-color: #666666; - -fx-text-fill: #cccccc; + /*-fx-text-fill: #cccccc;*/ + -fx-text-fill: #ffffff; +} + +.gray-button .label { + -fx-text-fill: #ffffff; } .green-button { @@ -266,9 +271,10 @@ } .pot-title { - -fx-text-fill: gold; + -fx-text-fill: #ffffff; -fx-font-size: 14px; -fx-font-weight: bold; + -fx-effect: dropshadow(one-pass-box, #000000, 0, 0, 3, 3); } .pot-box { @@ -410,6 +416,183 @@ -fx-background-color: #333333; } -.context-menu .menu-item:focused { - -fx-background-color: #333333; +.context-menu .menu-item .label { + -fx-text-fill: #ffffff; + -fx-font-size: 13px; +} + +/*.context-menu .menu-item:focused {*/ +/* -fx-background-color: #333333;*/ +/*}*/ + +.context-menu .menu-item:hover .label, +.context-menu .menu-item:focused .label { + /*-fx-text-fill: #b8860b;*/ + -fx-font-size: 15px; +} + +.notebook { + -fx-background-color: rgb(13, 158, 59); + -fx-background-radius: 23; + -fx-border-radius: 20; + -fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10; + -fx-border-width: 3; + -fx-effect: dropshadow(one-pass-box, #000000, 0, 0, 5, 5); + /*-fx-cursor: move;*/ + + -fx-padding: 0 0 15 0; +} + +.notebook:hover { + -fx-border-color: #ffffff; +} + +.notebook.player-active-turn { + /* Active turn should only change the shadow to avoid flicker/transparency jumps. */ + -fx-effect: dropshadow(one-pass-box, rgb(184, 134, 11), 0, 0, 5, 5); +} + +.notebook-header { + -fx-background-color: rgb(13, 158, 59); + -fx-background-radius: 25 25 0 0; + -fx-padding: 8 10; + -fx-cursor: move; +} + +.notebook-title { + -fx-text-fill: #ffffff; + -fx-font-size: 18px; + -fx-font-weight: bold; + -fx-effect: dropshadow(one-pass-box, #000000, 0, 0, 3, 3); +} + +.notebook-content { + -fx-background-color: transparent; + -fx-padding: 0; +} + +.notebook-content > .viewport { + -fx-background-color: rgb(13, 158, 59); + -fx-background-radius: 0 0 25 25; +} + + +.scroll-pane { + -fx-background-color: transparent; + -fx-border-color: transparent; +} + +.scroll-pane .scroll-bar:vertical, +.scroll-pane .scroll-bar:horizontal { + -fx-background-color: transparent; +} + +.scroll-pane .scroll-bar .track { + /*-fx-background-color: #5c3d10;*/ + -fx-background-color: transparent; + -fx-background-radius: 5; +} + +.scroll-pane .scroll-bar .thumb { + -fx-background-color: #3d260a; + -fx-background-radius: 5; +} + +.scroll-pane .scroll-bar .thumb:hover { + -fx-background-color: #2a1b07; +} + +.notebook-tips-list { + -fx-padding: 10; + -fx-spacing: 10; + -fx-background-color: transparent; +} + +.notebook-tips-list .text-flow { + -fx-padding: 12; + -fx-background-color: rgb(13, 158, 59); + -fx-background-radius: 15; +} + +.settings-box { + -fx-background-color: rgb(13, 158, 59); + -fx-background-radius: 23; + -fx-border-radius: 20; + -fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10; + -fx-border-width: 3; + -fx-effect: dropshadow(one-pass-box, #000000, 0, 0, 5, 5); + /*-fx-cursor: move;*/ + -fx-padding: 0 0 15 0; +} + +.settings-box:hover { + -fx-border-color: #ffffff; +} + +.settings-box.player-active-turn { + /* Active turn should only change the shadow to avoid flicker/transparency jumps. */ + -fx-effect: dropshadow(one-pass-box, rgb(184, 134, 11), 0, 0, 5, 5); +} + +.settings-header { + -fx-background-color: transparent; + -fx-background-radius: 20 20 0 0; + -fx-padding: 10 15; + -fx-cursor: move; + -fx-border-width: 0 0 1 0; +} + +.settings-label { + -fx-text-fill: #ffffff; + -fx-font-size: 18px; + -fx-font-weight: bold; + -fx-effect: dropshadow(one-pass-box, #000000, 0, 0, 3, 3); +} + +.settings-content { + -fx-padding: 15 20 20 20; + -fx-spacing: 12; +} + +.settings-content { + -fx-background-color: transparent; + -fx-text-fill: #e8e8e8; + -fx-font-size: 13px; +} + +.radio-button { + -fx-text-fill: #ffffff; + -fx-font-size: 13px; + + -fx-padding: 6 8; + -fx-background-radius: 10; +} + +.radio-button:hover { + -fx-font-size: 15px; +} + +.radio-button:selected { + /*-fx-text-fill: #b8860b;*/ + -fx-text-fill: #ffffff; +} + +.radio-button .radio { + -fx-background-color: #b8860b; + /*-fx-border-width: 3;*/ + /*-fx-border-color: #b8860b;*/ + /*-fx-border-radius: 50%;*/ +} + +.radio-button:selected .radio { + -fx-background-color: #b8860b; + -fx-effect: dropshadow(gaussian, rgba(184,134,11,0.8), 6, 0.3, 0, 0); +} + +.settings-box { + -fx-background-insets: 0; +} + +.settings-content { + -fx-background-color: transparent; }