Le style d'une TableView dans le CSS (JavaFX)
Comment puis-je style de la "CE" point dans mon TableView?
Mon Code CSS se présente comme suit:
*/*
* Empty Stylesheet file.
*/
.root{
-fx-background-color: #262626;
}
.table-view{
-fx-background-color: transparent;
}
.table-view:focused{
-fx-background-color: transparent;
}
/* Spaltenköpfe
Struktur column-header-background -> column-header */
.table-view .column-header-background{
-fx-background-color: linear-gradient(#131313 0%, #424141 100%);
}
.table-view .column-header-background .label{
-fx-background-color: transparent;
-fx-text-fill: white;
}
.table-view .column-header {
-fx-background-color: transparent;
}
.table-view .table-cell{
-fx-text-fill: white;
}
.table-row-cell{
-fx-background-color: -fx-table-cell-border-color, #616161;
-fx-background-insets: 0, 0 0 1 0;
-fx-padding: 0.0em; /* 0 */
}
.table-row-cell:odd{
-fx-background-color: -fx-table-cell-border-color, #424242;
-fx-background-insets: 0, 0 0 1 0;
-fx-padding: 0.0em; /* 0 */
}
.table-row-cell:selected {
-fx-background-color: #005797;
-fx-background-insets: 0;
-fx-background-radius: 1;
}
.table-view > .virtual-flow > .scroll-bar:vertical,
.table-view > .virtual-flow > .scroll-bar:vertical > .track,
.table-view > .virtual-flow > .scroll-bar:vertical > .track-background,
.table-view > .virtual-flow > .scroll-bar:horizontal,
.table-view > .virtual-flow > .scroll-bar:horizontal > .track,
.table-view > .virtual-flow > .scroll-bar:horizontal > .track-background {
-fx-background-color: transparent;
}
.table-view > .virtual-flow > .scroll-bar > .increment-button,
.table-view > .virtual-flow > .scroll-bar > .decrement-button {
-fx-opacity: 0;
}*
Donc, comme vous pouvez le voir, j'ai déjà changé la chronique en-tête arrière-plan et tout comme ça. Aussi j'#ai changé le fond de la TableView. Donc, je ne sais vraiment pas quoi exactement je dois changer dans mon CSS.
Merci pour toute aide! 🙂
-GhostfaceChilla-
OriginalL'auteur Chris | 2015-11-26
Vous devez vous connecter pour publier un commentaire.
.table-vue .remplissage est le sélecteur vous êtes à la recherche pour. Le vue panoramique de l'outil est assez bonne pour l'analyse d'un composant.
OriginalL'auteur wzberger
La couleur de fond peut être en blanc si aucun enregistrement dans TableView. Et peut-être agréable d'avoir le style pour l'espace réservé
OriginalL'auteur Dmitrij Krupa