Commit Graph
33 Commits
Author SHA1 Message Date
trav90 fdce2bdf00 [GTK3] Consider also margin when determine range widget slider size 2018-04-06 10:34:41 -05:00
trav90 c17f16c0dd [GTK3] With GTK versions < 3.8 draw menuitem background and frame only when in hover and not a separator 2018-04-06 10:30:12 -05:00
trav90 4b613ca671 [GTK3] Implement pre-3.20 MOZ_GTK_PROGRESS_CHUNK in WidgetStyleCache 2018-04-06 10:25:03 -05:00
trav90 0d35094e1c [GTK3] Adjust textarea style contexts for GTK 3.20 theming ABI changes 2018-04-06 09:18:33 -05:00
trav90 0108829811 [GTK3] Consider textview root node background in addition to text node for -moz-appearance:textfield-multiline
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2018-04-06 09:16:44 -05:00
trav90 b0a0731623 [GTK3] Consider textview root node background in addition to text node for -moz-field
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2018-04-06 09:10:47 -05:00
trav90 cd2862b19d [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.
2018-04-06 09:06:33 -05:00
trav90 fd226c64d1 [GTK3] Use WidgetCache to get colors at nsLookAndFeelfor menuitems, text and tree view 2018-04-06 09:04:54 -05:00
trav90 50d7b2dcc0 [GTK3] Use WidgetCache to get colors at nsLookAndFeel for GtkButton, GtkWindow, GtkScrollBar 2018-04-06 07:53:35 -05:00
trav90 69c075efdb [GTK3] Use WidgetCache to get colors at nsLookAndFeel 2018-04-06 07:52:43 -05:00
trav90 4f27c93bd2 [GTK3] Adjust menuitem padding and check/radio indicator position for changes in GTK 3.20 2018-04-05 15:51:07 -05:00
trav90 8808cc0471 [GTK3] Rename subtract_margin and rectangle_inset to Inset* and swap InsetByMargin parameters for consistency. 2018-04-05 15:50:31 -05:00
trav90 d6d44193c0 [GTK] Rename radio/check menuitem and indicator as used with ClaimStyleContext.
The same name is retained for moz_gtk_widget_paint(), which is now more consistent.
2018-04-05 15:49:41 -05:00
trav90 d5de7223d7 [GTK3] Use menuitem padding between menuitem and check indicator. 2018-04-05 15:48:29 -05:00
trav90 c49487cddd [GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20
In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately.
2018-04-05 15:47:48 -05:00
trav90 ffa9276e42 [GTK3] Draw separator menuitem background and frame behind separator in menu 2018-04-05 15:47:12 -05:00
trav90 c00baa15f1 [GTK3] Draw menuitem background even when not in hover 2018-04-05 15:46:38 -05:00
janekptacijarabaci b81825a395 Implement DOM page onvisibilitychange. 2018-03-12 08:38:36 +01:00
wolfbeast 03b404e129 Remove windows-xp and windows-vista from @media(-moz-os-version) 2018-02-20 14:01:05 +01:00
wolfbeast c6cfaea79e Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsWinGesture.h. 2018-02-19 12:33:04 +01:00
wolfbeast e2e4e7e998 Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsLookAndFeel.h. 2018-02-19 12:31:28 +01:00
wolfbeast b462314823 Remove always-false #if WINVER < 0x0600 (Windows Vista) checks in widget/windows. 2018-02-19 12:27:14 +01:00
wolfbeast 9afc4c21ac Remove the use of GetProcAddress() for shell32
This avoids manually hooking into shell32.dll and using the native shell API instead.
Tag mcp-graveyard/UXP#22.
2018-02-19 10:00:25 +01:00
wolfbeast a27e54a5aa Make the proper Windows APIs natively available to our tree.
Tag mcp-graveyard/UXP#22.
This bypasses custom definitions of some functions for things natively available in Windows 7.
2018-02-19 09:58:44 +01:00
wolfbeast 6f6c71a76c Remove unnecessary code in /widget.
- Remove numerous blocklist entries that no longer apply.
- Remove CanComputeVirtualKeyCodeFromScanCode(), because it's always true.
- Remove ShowXP{Folder,File}Picker(), since we have native pickers on supported Windows versions.
- Remove the config.trim_on_minimize preference, which is pointless on NT6+ and will just cause problems if used.

Tag mcp-graveyard/UXP#22.
2018-02-18 14:56:31 +01:00
wolfbeast 1b4cda5d8c Add a signal preference for dynamic color changes to adjust "brighttext" in the front-end.
This makes all relevant toolbars pick up the fact that the Windows accent color has changed and should check and if necessary update the "brighttext" property on them for styling of controls.
This is a bit of a hack-around to the fact that there is no real easy way otherwise to notify the front-end of color changes without needing a change in focus of the window.
There is a deliberate 300ms delay built in, because otherwise the styles might not have propagated yet, resulting in brighttext not being updated properly.
2018-02-17 16:31:25 +01:00
wolfbeast e3b229c769 Use more logical pref names for mouse button 4&5
Also improves comment wording.
2018-02-12 15:56:16 +01:00
wolfbeast 9c630e8262 Un-fold browsercomps.* from libxul
This resolves #16.
2018-02-11 13:01:08 +01:00
wolfbeast 310a976f19 Add -moz-windows-accent-color-is-dark
#31 point 4
2018-02-04 20:41:16 +01:00
wolfbeast a3b6a7b302 Split out the check for accent color luminance. 2018-02-04 20:40:20 +01:00
wolfbeast 88f51fef36 Add -moz-win-accentcolor(text)
#31 points 1 and 2
2018-02-04 20:37:56 +01:00
wolfbeast 341707daf5 Add @media(-moz-windows-accent-color-applies)
#31 point 3
2018-02-04 20:36:05 +01:00
Matt A. Tobin ad18d877dd Add m-esr52 at 52.6.0 2018-02-02 04:16:08 -05:00