Skip to content

Commit

Permalink
Renamed paging-view.css to paging-controls.css and changed the defaul…
Browse files Browse the repository at this point in the history
…t styleclass of PagingControls to "paging-controls."
  • Loading branch information
dlemmermann committed Sep 23, 2024
1 parent d004c71 commit ab3130b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
7 changes: 2 additions & 5 deletions gemsfx/src/main/java/com/dlsc/gemsfx/PagingControls.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
*/
public class PagingControls extends Control {

private static final String DEFAULT_STYLE_CLASS = "paging-view";
private static final String PAGE_BUTTON = "page-button";

private final IntegerProperty startPage = new SimpleIntegerProperty();
private static final String DEFAULT_STYLE_CLASS = "paging-controls";

/**
* Constructs a new instance.
Expand Down Expand Up @@ -84,7 +81,7 @@ protected Skin<?> createDefaultSkin() {

@Override
public String getUserAgentStylesheet() {
return Objects.requireNonNull(PagingControls.class.getResource("paging-view.css")).toExternalForm();
return Objects.requireNonNull(PagingControls.class.getResource("paging-controls.css")).toExternalForm();
}

private final BooleanProperty showPreviousNextPageButton = new SimpleBooleanProperty(this, "showPreviousNextButton", true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
.paging-view {
.paging-controls {
-fx-alignment: center-left;
-fx-padding: 5px 0px 0px 0px;
-fx-spacing: 2px;
}

.paging-view > .pane {
.paging-controls > .pane {
}

.paging-view > .pane.horizontal {
.paging-controls > .pane.horizontal {
-fx-spacing: 10px;
-fx-alignment: center-left;
}

.paging-view > .pane.vertical {
.paging-controls > .pane.vertical {
-fx-spacing: 5px;
-fx-alignment: center;
}

.paging-view > .pane > .page-buttons-container {
.paging-controls > .pane > .page-buttons-container {
-fx-alignment: center-left;
-fx-spacing: 2px;
}

.paging-view > .pane > .message-label {
.paging-controls > .pane > .message-label {
}

.paging-view > .pane > .page-buttons-container > .page-button {
.paging-controls > .pane > .page-buttons-container > .page-button {
-fx-padding: 2px 5px;
-fx-background-color: transparent;
-fx-border-color: transparent;
-fx-min-width: 2em;
}

.paging-view > .pane > .page-buttons-container > .page-button:hover,
.paging-view > .pane > .page-buttons-container > .page-button.current {
.paging-controls > .pane > .page-buttons-container > .page-button:hover,
.paging-controls > .pane > .page-buttons-container > .page-button.current {
-fx-background: -fx-selection-bar;
-fx-background-color: -fx-background;
-fx-text-fill: -fx-selection-bar-text;
}

.paging-view > .pane > .spacer {
.paging-controls > .pane > .spacer {
}

.paging-view > .pane > .page-buttons-container > .navigation-button {
.paging-controls > .pane > .page-buttons-container > .navigation-button {
-fx-padding: 5px;
-fx-background-color: transparent;
-fx-content-display: graphic-only;
}

.paging-view > .pane > .page-buttons-container > .navigation-button .ikonli-font-icon {
.paging-controls > .pane > .page-buttons-container > .navigation-button .ikonli-font-icon {
-fx-icon-size: 24px;
-fx-icon-color: -fx-text-background-color;
}

0 comments on commit ab3130b

Please sign in to comment.