Skip to content

Commit

Permalink
Fixes #94: ListView - style unfilled cells differently
Browse files Browse the repository at this point in the history
(cherry picked from commit b9d7235)
  • Loading branch information
p-dukke committed May 10, 2020
1 parent bc7ecfc commit 98b16bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ControlsSample extends Application {

private static final String COLOR_PICKER_RESOURCE = "JMetro ColorPicker.fxml";

static final private String RESOURCE = SPINNER_RESOURCE;
static final private String RESOURCE = LIST_VIEW_RESOURCE;
static final private Style STARTING_STYLE = Style.LIGHT;

@Override
Expand Down
4 changes: 2 additions & 2 deletions jmetro/src/main/resources/jfxtras/styles/jmetro/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1458,12 +1458,12 @@ TextField {
-fx-background-color: transparent;
}

.list-view:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:hover,
.list-view:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:hover,
.list-view.alternating-row-colors:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:hover:odd {
-fx-background-color: cell_hover_color;
}

.list-view:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:pressed,
.list-view:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:pressed,
.list-view.alternating-row-colors:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:pressed:odd {
-fx-background-color: cell_pressed_color;
}
Expand Down

0 comments on commit 98b16bc

Please sign in to comment.