From 63ec0cc2c5dbc8375f8e63b2a1735bc974732faa Mon Sep 17 00:00:00 2001 From: mkpaz Date: Tue, 6 Sep 2022 09:09:44 +0400 Subject: [PATCH] Rename color selector style class --- .../atlantafx/sampler/page/components/DatePickerPage.java | 2 +- .../atlantafx/sampler/page/general/AccentColorSelector.java | 2 +- .../assets/styles/scss/widgets/_accent-color-selector.scss | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sampler/src/main/java/atlantafx/sampler/page/components/DatePickerPage.java b/sampler/src/main/java/atlantafx/sampler/page/components/DatePickerPage.java index 50323fb..a87a7e3 100644 --- a/sampler/src/main/java/atlantafx/sampler/page/components/DatePickerPage.java +++ b/sampler/src/main/java/atlantafx/sampler/page/components/DatePickerPage.java @@ -205,7 +205,7 @@ public class DatePickerPage extends AbstractPage { colorButton("-color-danger-emphasis", "-color-fg-emphasis"), resetBtn ); - getStyleClass().add("accent-color-selector"); + getStyleClass().add("color-selector"); } private Button colorButton(String bgColorName, String fgColorName) { diff --git a/sampler/src/main/java/atlantafx/sampler/page/general/AccentColorSelector.java b/sampler/src/main/java/atlantafx/sampler/page/general/AccentColorSelector.java index 96289cc..f15803e 100644 --- a/sampler/src/main/java/atlantafx/sampler/page/general/AccentColorSelector.java +++ b/sampler/src/main/java/atlantafx/sampler/page/general/AccentColorSelector.java @@ -33,7 +33,7 @@ public class AccentColorSelector extends HBox { colorButton(AccentColor.primerCoral()), resetBtn ); - getStyleClass().add("accent-color-selector"); + getStyleClass().add("color-selector"); } private Button colorButton(AccentColor accentColor) { diff --git a/sampler/src/main/resources/assets/styles/scss/widgets/_accent-color-selector.scss b/sampler/src/main/resources/assets/styles/scss/widgets/_accent-color-selector.scss index 86fca5d..4cab76e 100644 --- a/sampler/src/main/resources/assets/styles/scss/widgets/_accent-color-selector.scss +++ b/sampler/src/main/resources/assets/styles/scss/widgets/_accent-color-selector.scss @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -.accent-color-selector { +.color-selector { -color-primary: -color-accent-emphasis; -fx-spacing: 1em; @@ -16,4 +16,4 @@ -fx-background-color: -color-primary; } } -} \ No newline at end of file +}