![]() ![]() Suppose you’d like to have two combo boxes, a blue and a red one. You might wonder, with such a limitation, how do other gtk developers get by? But the drop down button and the background of the menu cannot be styled. In the example below, we styled the Entry and the text of the menu. As such, we have no way to apply a style context to them.Īs a result, we can sometimes only apply a background color to some parts of the widget. Some inner widgets are tucked away inside a private struct ( the issue described here). Sometimes we can hack a bit and with gtk_container_forall(.) access the child widgets that gtk_bin_get_child() does not expose.īut there is a limit as to what we can access. With such widgets, we can sometimes use gtk_bin_get_child() to get one of the nested components and run gtk_context_add_provider(.) on that, but this doesn’t give us access to all nested components. The issue is that the CSS that we apply only get’s applied to the top-level widget and not always recursively to all it’s child widgets. However, some gtk widgets are composed of multiple nested widgets. In SWT, we can theme individual GtkWidgets with gtk_context_add_provider(widgetProvider, css). As such I’ve come across what is do-able in SWT and what is not. (E.g fixing background of button and combo). ![]() Not that it’s a driver at all, but it might help the IDE feel more natural for them.įor now, here’s a peak at the CDT going dark :).Recently I’ve done a fair bit of work with Eclipse’s dark theme and Gtk’s CSS. Most of the command line gang I see at QNX are all using dark theme terminal windows. I think embedded developers would love a dark theme. And I can’t wait to try it with Momentics. But once it’s all together, I can’t wait to set it and leave it. JDT, in particular which has a lot of black on black text making it unusable. There’s still other plug-ins that need to do the same change we’ve done for CDT. “Once you go dark, it’s hard to go back.” (me on Twitter shortly after that). In fact, I switched to my current Momentics environment and felt blinded by all the white. I think you have to be really careful how bring or dark you make the text, and some of the editors right now have a little to dark a grey for the text for me to focus on. But after a while, my eyes adjusted to the scheme and wasn’t bad. When I turned on the Eclipse dark theme for the first time today, it was everything I feared. For example, I can never use VGA monitors again since they’re totally blurry to me. I’ve also read research that said that dark themes were OK, but not for people with strong astigmatism, such as I. I’ve wondered whether dark was good or not and the UX gang that we worked with at BlackBerry were pretty adamant that it was not a good thing. ![]() With the helpful push from Lars Vogel, and the great color work from Andrea Guarinoni, CDT now has support for the new dark them coming in Eclipse Luna. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |