Skip to content

Commit

Permalink
Fixes #198: TreeView - Empty rows show pressed background when pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
dukke committed May 8, 2021
1 parent 61ccf27 commit cde2fb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jmetro-samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ application {
/* Controls that have cells */
// mainClass.set('jfxtras.styles.samples.jmetro.TableViewSample')
//mainClass.set('jfxtras.styles.samples.jmetro.TreeTableViewSample')
//mainClass.set('jfxtras.styles.samples.jmetro.TreeViewSample')
mainClass.set('jfxtras.styles.samples.jmetro.TreeViewSample')
//mainClass.set('jfxtras.styles.samples.jmetro.TreeTableViewWithSubheaders')
//mainClass.set('jfxtras.styles.samples.jmetro.TableViewWithSubheadersSample')

Expand All @@ -31,8 +31,8 @@ application {

//mainClass.set('jfxtras.styles.samples.jmetro.MDL2IconFontSample')

//mainClass.set('jfxtras.styles.samples.jmetro.ControlsSample')
mainClass.set('jfxtras.styles.samples.jmetro.themetester.ThemeTester')
// mainClass.set('jfxtras.styles.samples.jmetro.ControlsSample')
// mainClass.set('jfxtras.styles.samples.jmetro.themetester.ThemeTester')

//mainClass.set('jfxtras.styles.samples.jmetro.ColorPickerThrowsRuntimeException')
// mainClass.set('jfxtras.styles.samples.jmetro.TextFieldAndPasswordFieldShrinkGlitch')
Expand Down
4 changes: 1 addition & 3 deletions jmetro/src/main/resources/jfxtras/styles/jmetro/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1833,11 +1833,9 @@ TextField {
.tree-view .tree-cell:filled:pressed,
.tree-view .tree-cell:filled:selected:pressed,
.tree-view .tree-cell:selected:pressed,
.tree-view .tree-cell:pressed,
.tree-view.alternating-row-colors .tree-cell:filled:pressed:odd,
.tree-view.alternating-row-colors .tree-cell:filled:selected:pressed:odd,
.tree-view.alternating-row-colors .tree-cell:selected:pressed:odd,
.tree-view.alternating-row-colors .tree-cell:pressed:odd {
.tree-view.alternating-row-colors .tree-cell:selected:pressed:odd {
-fx-background-color: cell_pressed_color;
}

Expand Down

0 comments on commit cde2fb1

Please sign in to comment.