From d16492347e463eca0a8350dc9b522c106d3e860e Mon Sep 17 00:00:00 2001
From: tobias <thinkdifferent055@gmail.com>
Date: Wed, 6 Feb 2019 15:58:46 +0100
Subject: [PATCH] Add custom menu-button style

---
 .../resources/style/components/menu-button.css  | 17 +++++++++++++++++
 .../main/resources/style/components/menu.css    |  7 ++++++-
 .../design/ModernGlobalDesignHandlerImpl.scala  |  1 +
 3 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 PlayWall/src/main/resources/style/components/menu-button.css

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 00000000..8900a89f
--- /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 28e77deb..ba456189 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 4dae8d49..f82d4eeb 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",
-- 
GitLab