diff --git a/PlayWall/src/main/resources/style/components/menu-button.css b/PlayWall/src/main/resources/style/components/menu-button.css new file mode 100644 index 0000000000000000000000000000000000000000..8900a89f88dcc76161ec632ed64072767fed2e52 --- /dev/null +++ b/PlayWall/src/main/resources/style/components/menu-button.css @@ -0,0 +1,17 @@ +.menu-button { + -fx-background-color: #5c5c5c; + -fx-text-fill: #efefef; + -fx-background-radius: 3px; + -fx-border-width: 0; + -fx-pref-height: 30px; +} + +.menu-button:hover { + -fx-background-color: #878787; + -fx-text-fill: #EEEEEE !important; +} + +.menu-button:default { + -fx-background-color: #358dab; + -fx-text-fill: #EEEEEE !important; +} \ No newline at end of file diff --git a/PlayWall/src/main/resources/style/components/menu.css b/PlayWall/src/main/resources/style/components/menu.css index 28e77debcd13541b137418c13a8cf5abfd103f16..ba45618956d11bd7122b1bb89412f449d79a7e28 100644 --- a/PlayWall/src/main/resources/style/components/menu.css +++ b/PlayWall/src/main/resources/style/components/menu.css @@ -2,8 +2,13 @@ -fx-background-color: #333333; } -.menu:showing, .menu:hover { +.menu-bar .menu-button { + -fx-background-color: #333333; +} + +.menu-bar .menu:showing, .menu-bar .menu:hover { -fx-background-color: #358dab; + -fx-background-radius: 0px; } .menu-item:selected, .menu-item:focused { diff --git a/PlayWall/src/main/scala/de/tobias/playpad/design/ModernGlobalDesignHandlerImpl.scala b/PlayWall/src/main/scala/de/tobias/playpad/design/ModernGlobalDesignHandlerImpl.scala index 4dae8d4976f7f42b123069942de5ef5797b87934..f82d4eeb688358c2e8cb166c77f0c82545b1065c 100644 --- a/PlayWall/src/main/scala/de/tobias/playpad/design/ModernGlobalDesignHandlerImpl.scala +++ b/PlayWall/src/main/scala/de/tobias/playpad/design/ModernGlobalDesignHandlerImpl.scala @@ -27,6 +27,7 @@ class ModernGlobalDesignHandlerImpl extends ModernGlobalDesignHandler with Color val styleSheets: Array[String] = Array( "style/components/button.css", + "style/components/menu-button.css", "style/components/combobox.css", "style/components/checkbox.css", "style/components/scrollbar.css",