Skip to content

Commit

Permalink
Fixes #150: ColorPicker - Style ColorPicker with a JMetro style
Browse files Browse the repository at this point in the history
  • Loading branch information
p-dukke committed Apr 19, 2020
1 parent f71d6ee commit 187da4c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 13 deletions.
17 changes: 17 additions & 0 deletions jmetro/src/main/resources/jfxtras/styles/jmetro/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,23 @@ totally specific (always using direct child) and cover all cases, which would be
* *
******************************************************************************/

.color-palette {
-fx-background-radius: 0;

-fx-background-color: popup_background_color;
-fx-border-color: popup_border_color;
}

/* Custom Color Dialog */
.custom-color-dialog {
-fx-background-color: dialog_background_color;
}

.custom-color-dialog .controls-pane .customcolor-controls-background {
-fx-background-color: controls_border_color, controls_background_color;
}

/* With Button styleclass */
.color-picker.button {
-fx-border-color: transparent;
-fx-border-width: 2;
Expand Down
22 changes: 16 additions & 6 deletions jmetro/src/main/resources/jfxtras/styles/jmetro/dark_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -666,19 +666,19 @@ Text {
* *
******************************************************************************/

.dialog-pane {
-fx-padding: 0.75em 0.5em 0.5em 0.5em;
}
.dialog-pane {
-fx-padding: 0.75em 0.5em 0.5em 0.5em;
}

/*******************************************************************************
* *
* Status Bar (ControlsFX) *
* *
******************************************************************************/

.status-bar {
background_color: #252525;
}
.status-bar {
background_color: #252525;
}

/*******************************************************************************
* *
Expand Down Expand Up @@ -721,6 +721,16 @@ Text {
* *
******************************************************************************/

.color-palette {
popup_background_color: #2b2b2b;
popup_border_color: #767676;
}

.custom-color-dialog {
controls_background_color: #2b2b2b;
controls_border_color: #767676;
}

.color-picker.button {
button_background_color: #333333;
background_pressed_color: #666666;
Expand Down
24 changes: 17 additions & 7 deletions jmetro/src/main/resources/jfxtras/styles/jmetro/light_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -692,14 +692,24 @@ Text {
* ColorPicker *
* *
******************************************************************************/
.color-palette {
popup_background_color: #f2f2f2;
popup_border_color: #cccccc;
}

.color-picker.button {
button_background_color: #cccccc;
background_pressed_color: #999999;
.custom-color-dialog {
controls_background_color: #f2f2f2;
controls_border_color: #cccccc;
}

border_hover_color: #7a7a7a;
.color-picker.button {
button_background_color: #cccccc;
background_pressed_color: #999999;

text_color: #111;
border_hover_color: #7a7a7a;

text_color: #111;

focus_ring_border_color: white;
}

focus_ring_border_color: white;
}

0 comments on commit 187da4c

Please sign in to comment.