mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
[GTK3] Introduce MOZ_GTK_TEXT_VIEW_TEXT and move MOZ_GTK_RESIZER to WidgetStyleCache
The style context for MOZ_GTK_TEXT_VIEW is now created by copying from the widget instead of caching a widget and using its context. No rendering changes are expected, unless themes are animating GtkTextView backgrounds.
This commit is contained in:
parent
f0e2977c10
commit
3951327f27
4 changed files with 49 additions and 32 deletions
|
|
@ -1291,7 +1291,7 @@ nsLookAndFeel::Init()
|
|||
}
|
||||
#else
|
||||
// Text colors
|
||||
style = ClaimStyleContext(MOZ_GTK_TEXT_VIEW);
|
||||
style = ClaimStyleContext(MOZ_GTK_TEXT_VIEW_TEXT);
|
||||
gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
|
||||
sMozFieldBackground = GDK_RGBA_TO_NS_RGBA(color);
|
||||
gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue