Add support for NO_HEADER tweak in tables
This commit is contained in:
parent
3860c9c63d
commit
d3bb5717ac
@ -21,6 +21,11 @@ public final class Tweaks {
|
|||||||
*/
|
*/
|
||||||
public static final String EDGE_TO_EDGE = "edge-to-edge";
|
public static final String EDGE_TO_EDGE = "edge-to-edge";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes control header.
|
||||||
|
*/
|
||||||
|
public static final String NO_HEADER = "no-header";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alignment.
|
* Alignment.
|
||||||
*/
|
*/
|
||||||
|
@ -390,6 +390,14 @@ $tree-cell-indent: 1.2em !default; // default JavaFX values is 18px
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Add support for NO_HEADER tweak in tables &.no-header {
|
||||||
|
>.column-header-background {
|
||||||
|
-fx-max-height: 0;
|
||||||
|
-fx-pref-height: 0;
|
||||||
|
-fx-min-height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// each row in the table is a .table-row-cell,
|
// each row in the table is a .table-row-cell,
|
||||||
// inside a .table-row-cell is any number of .table-cell
|
// inside a .table-row-cell is any number of .table-cell
|
||||||
.table-row-cell {
|
.table-row-cell {
|
||||||
@ -571,6 +579,14 @@ $tree-cell-indent: 1.2em !default; // default JavaFX values is 18px
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.no-header {
|
||||||
|
>.column-header-background {
|
||||||
|
-fx-max-height: 0;
|
||||||
|
-fx-pref-height: 0;
|
||||||
|
-fx-min-height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tree-table-row-cell {
|
.tree-table-row-cell {
|
||||||
-fx-background-color: -color-cell-border, -color-cell-bg;
|
-fx-background-color: -color-cell-border, -color-cell-bg;
|
||||||
-fx-background-insets: 0, 0 0 1 0;
|
-fx-background-insets: 0, 0 0 1 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user