Gtkmm css after application loses focus

hi
i play with css settings and all good. I have few grids on window and from one grid i execute another application. and it seems that active row which has has last focus doesn’t change color of text upon starting another app. it changes background but not text.

Grid has childs box and in that box is textview widget or any classic widget

Hi,

You can use the CSS :backdrop state to change a widget’s style when its window loses the focus.

Example:

label:backdrop {
    color: red;
}

its not working… this is my css

cssGrid += ".rhea_gridCellEven {background-color: #FFFFFF; color:black; border-color: black; border-style: none none  solid solid; border-width: 0.7px;}";
	cssGrid += ".rhea_gridCellEven .text {background-color: #FFFFFF; color:black; border-color: black; border-style: none none solid solid; border-width: 0.7px;}";
	cssGrid += ".rhea_gridCellOdd {background-color: #E0E0E0; color:black; border-color: black;border-style: none none solid solid;border-width: 0.7px;}";
	cssGrid += ".rhea_gridCellOdd .text {background-color: #E0E0E0; color:black; border-color: black; border-style: none none solid solid; border-width: 0.7px;}";
	cssGrid += ".rhea_selectedRow, .rhea_selectedRow .text {background-color: #466176; color: #FFFFFF;}";
	cssGrid += ".rhea_gridCellEven.text:backdrop, .rhea_gridCellOdd.text:backdrop {color:#000000;} ";

the text stays white while backcolor selected row is returned into odd or even cell

hi… in diferent place in another object i had incomplite css but sharing object skeleton… looks like css is stacked and that affected my other grids…im still new bee here …

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.