Commit Graph

11 Commits

Author SHA1 Message Date
Pale Moon ce3d9724ed Use correct window reference when setting parent window in Windows widget.
SetParent removes the widget from the old parent widget and then sets its new one.
We were incorrectly using the new parent widget when we needed the old one.
2018-07-25 08:09:25 +08:00
Pale Moon 95fa208152 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-07-25 08:02:31 +08:00
Pale Moon 6193a3e082 Make -moz-windows-accent-color-is-dark live to color changes (e.g. when accent color is automatic based on desktop background image).
On Win10 only, trigger a theme change notification when system colors change to pick up media queries and refresh caption buttons.
2018-07-25 08:00:06 +08:00
Pale Moon cbd7f2de83 Add a '-moz-win-accentcolor' color keyword to expose the Win10 accent color. 2018-07-25 07:53:55 +08:00
Pale Moon ed926e44a1 Make sure we clear old cut-out regions when window geometries change.
Follow-up to #1101
2018-07-25 07:27:05 +08:00
Pale Moon 793941340d Geometries: Check for compositor and return early + draw top border on Win 10
This resolves #1101
2018-07-25 07:26:44 +08:00
Pale Moon 08e58e7fbb Remove Windows Metro/WinRT code. 2018-07-25 06:25:01 +08:00
wolfbeast aea4638cfc Avoid drawing the cutout on Windows 10 because we draw our own caption buttons.
This is a port of the equivalent commit Pale-Moon/165424b447182a3657cb5be276d13d074b1373f6

This resolves #81
2018-07-24 23:28:10 +08:00
wolfbeast 4b4d2d1275 Only enable D3D9 layers HWA back-end if explicitly preffed on. Always use DX11 otherwise. 2018-07-24 23:25:54 +08:00
wolfbeast 53761b6336 Prep tree for forward-porting Goanna: stage 2 2018-07-24 23:11:02 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00