2015-11-26 7 views
7

मैं अपने टेबल व्यू में "यह" बिंदु कैसे बना सकता हूं?सीएसएस (जावाएफएक्स) में एक टेबल व्यू स्टाइलिंग

*/* 
* 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; 
}* 

तो जैसा कि आप देख सकते हैं मैं पहले से ही colum हेडर-पृष्ठभूमि और इस तरह सब कुछ बदल दिया है:

TableView

मेरे सीएसएस कोड के रूप में निम्नानुसार लग रहा है। इसके अलावा मैंने tableView की पृष्ठभूमि बदल दी है। तो मैं वास्तव में नहीं जानता कि मुझे अपने सीएसएस में वास्तव में क्या बदलना चाहिए। हर मदद के लिए धन्यवाद! :)

-GhostfaceChilla-

उत्तर

15

.filler .table-दृश्य चयनकर्ता आप के लिए देख रहे हैं। scenic view tool किसी घटक का विश्लेषण करने के लिए बहुत अच्छा है।

0
.table-view{ 
    -fx-background-color: transparent; 
} 

पृष्ठभूमि का रंग सफेद tableview में अगर कोई रिकॉर्ड हो सकता है। और शायद प्लेसहोल्डर

के लिए स्टाइल होना अच्छा लगेगा
संबंधित मुद्दे