To get the color, Chromium uses GTK to render the background or border into a 24x24 bitmap and uses the average color for theming. Backgrounds and borders are complicated because in general they might have multiple gradients or images. The foreground color is simply taken from the CSS “color” property. Chromium usually doesn’t use GTK to render entire widgets, but instead tries to determine colors from them.Ĭhromium needs foreground, background and border colors from widgets. Chromium‘s themes, by contrast, are much simpler: it is mostly a list of about 80 colors (see //src/ui/native_theme/native_theme.h) overridden by the theme. GTK3 added a new CSS theming engine which gives fine-tuned control over how widgets are styled. How Chromium determines which colors to use ![]() ![]() ![]() The GTK+ port of Chromium has a mode where we try to match the user's GTK theme (which can be enabled under Settings -> Appearance -> Use GTK+ theme).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |