Martin Stransky
df1a302293
Bug 1555565 - Export correct user's preference for dark theme by prefers-color-scheme media query, r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D33133
--HG--
extra : moz-landing-system : lando
2019-06-10 09:43:27 +00:00
Mihai Alexandru Michis
9f96be64a8
Backed out changeset 1731c1e39b8c (bug 1555565) for causing xpcshell failures. CLOSED TREE
2019-06-07 16:35:00 +03:00
Martin Stransky
84dabd109d
Bug 1555565 - Export correct user's preference for dark theme by prefers-color-scheme media query, r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D33133
--HG--
extra : moz-landing-system : lando
2019-06-07 12:02:48 +00:00
Martin Stransky
ba6373e9aa
Bug 1531338 - [Linux/Gtk] Get and use Gtk theme text color for active/pressed button, r=dao,emilio
...
- Follow Gtk and get theme button text color directly from "button" CSS node instead of "button label"
- Provide new -moz-gtk-buttonactivetext color for active/pressed button text color
- Replace ButtonText color with -moz-gtk-buttonactivetext when it's appropriate
Differential Revision: https://phabricator.services.mozilla.com/D30566
--HG--
extra : moz-landing-system : lando
2019-05-24 08:51:48 +00:00
Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Martin Stransky
69a53af128
Bug 1529909 - Cache eIntID_CaretBlinkTime in GTK widget, r=dao
...
Differential Revision: https://phabricator.services.mozilla.com/D29256
--HG--
extra : moz-landing-system : lando
2019-04-30 08:24:16 +00:00
Emilio Cobos Álvarez
bfed43b178
Bug 1535790 - Initialize members in nsLookAndFeel, and bail out when there's no screen settings. r=stransky
...
A patch of mine starts calling nsLookAndFeel from xpcshell tests, which makes
gtk crash eventually.
Differential Revision: https://phabricator.services.mozilla.com/D23759
--HG--
extra : moz-landing-system : lando
2019-03-16 15:17:49 +00:00
Emilio Cobos Álvarez
323b5be77a
Bug 1526294 - Should not need a pres context to get a system font. r=jfkthame
...
The only caller wants CSS pixels, no need to go back and forth.
This is the last dependency on the pres context, I think, from the style system
font code.
Differential Revision: https://phabricator.services.mozilla.com/D19147
2019-02-15 01:35:13 +01:00
Martin Stransky
8ddc948f81
Bug 1433667 - Honour system titlebar button left/right placement, r=dao
...
Differential Revision: https://phabricator.services.mozilla.com/D16466
--HG--
extra : moz-landing-system : lando
2019-01-18 13:52:29 +00:00
Martin Stransky
53be695239
Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao
...
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).
It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.
It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.
Differential Revision: https://phabricator.services.mozilla.com/D16036
--HG--
extra : moz-landing-system : lando
2019-01-17 12:44:49 +00:00
Andreea Pavel
d0b4b569af
Backed out changeset aa442da7cfd8 (bug 1490344) for failing bc at browser/components/customizableui/test/browser_970511_undo_restore_default.js on a CLOSED TREE
2019-01-16 13:33:24 +02:00
Martin Stransky
0e01fab619
Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao
...
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).
It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.
It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.
Differential Revision: https://phabricator.services.mozilla.com/D16036
--HG--
extra : moz-landing-system : lando
2019-01-15 14:47:03 +00:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Martin Stransky
786a526298
Bug 1507475 - [Wayland] Implement global wayland registry, r=jhorak
...
Differential Revision: https://phabricator.services.mozilla.com/D12255
--HG--
extra : moz-landing-system : lando
2018-11-23 07:04:16 +00:00
Noemi Erli
c00dbe5749
Backed out changeset bafd708f5788 (bug 1507475) for bustages in builds/worker/workspace/build/src/widget/gtk/mozcontainer.cpp CLOSED TREE
2018-11-22 20:09:34 +02:00
Martin Stransky
d78c51a229
Bug 1507475 - [Wayland] Implement global wayland registry, r=jhorak
...
Differential Revision: https://phabricator.services.mozilla.com/D12255
--HG--
extra : moz-landing-system : lando
2018-11-22 13:24:09 +00:00
Tim Nguyen
f0ee1746ef
Bug 1472276 - Make -moz-cellhighlight distinct from Highlight and -moz-field r=karlt
...
Since focused+selected tree cells will no longer get an outline, we will start using a different background for the unfocused state.
That background needs to be distinct from Highlight, used on selected and focused items
and also distinct from -moz-appearance: listbox, which is used as the box background.
MozReview-Commit-ID: 7hcnueYlOXR
--HG--
extra : rebase_source : 42bb15e86252d72a3f58831079162d0f4723afc9
2018-06-29 19:23:03 +01:00
Chris Peterson
fe5cd3d5d9
Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj
...
MozReview-Commit-ID: 8pjYjEvQF42
--HG--
extra : rebase_source : 5eb0bea2ef5f06a811b4f3daf57ce8720f12dd07
2018-02-08 21:22:43 -08:00
Chris Peterson
d09123f248
Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
...
MozReview-Commit-ID: DE5HkIhsZ6D
--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Martin Stransky
13cafd9d37
Bug 1415080 - Rename all 's' prefixed members of nsLookAndFeel as they're not static ones, r=jhorak
...
MozReview-Commit-ID: 9LHIewRnbAY
--HG--
extra : rebase_source : f0a9b3c7b51bbc21ed8ab4cb5ca419a25fdc2b2e
2017-11-07 10:14:52 +01:00
Brad Werth
a2d5d923ea
Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt
...
MozReview-Commit-ID: ERsI916e7zf
--HG--
extra : rebase_source : 970c4b7b482dd4bac9fed51e81f34c370671be3d
2017-10-10 14:12:47 -07:00
Sebastian Hengst
d341bac932
Backed out changeset 7636f668f84e (bug 1403690)
2017-10-23 22:05:05 +02:00
Brad Werth
6595065d11
Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt
...
MozReview-Commit-ID: ERsI916e7zf
--HG--
extra : rebase_source : 6e01cb852a05db87ebe7961773703ead9aee8a57
2017-10-10 14:12:47 -07:00
Sebastian Hengst
a994da18d5
Backed out changeset 349f51081127 (bug 1403690)
2017-10-23 18:21:09 +02:00
Brad Werth
6c5f60148b
Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt
...
MozReview-Commit-ID: ERsI916e7zf
--HG--
extra : rebase_source : 580f72faf7b748644b7d2e25872eb57b929a6be1
2017-10-10 14:12:47 -07:00
Martin Stransky
798f390d6b
Bug 1409493 - Load actual CSD config from Gtk+, r=jhorak
...
MozReview-Commit-ID: GVHGXEk4IN
--HG--
extra : rebase_source : 349fd047f87db10aa3a83404e49552336022d009
2017-10-17 21:19:48 +02:00
Martin Stransky
b8ceb20909
Bug 1409493 - Implement CSD entries for Gtk+ LookAndFeel module, r=jhorak
...
MozReview-Commit-ID: CXsy9dhgMB9
--HG--
extra : rebase_source : 09265a59b17c612652ac048328681a8098c86846
2017-10-17 21:17:32 +02:00
Brad Werth
fb488ded4b
Bug 1401063: Cache remaining gtk window and button colors to eliminate on-demand gtk calls in ::NativeGetColor. r=karlt
...
MozReview-Commit-ID: HbZqBUG0w7y
--HG--
extra : rebase_source : 0b26c22113c2cda49129006fe933f20719b7a679
2017-09-19 13:00:28 -07:00
Karl Tomlinson
f800034d87
bug 1384701 remove MOZ_WIDGET_GTK == 2 code from nsLookAndFeel r=manishearth
...
This old code no longer builds and is superseded by the GTK3 port.
See also bug 1278282.
MozReview-Commit-ID: 9KyrPuNAluv
--HG--
extra : rebase_source : 8d5de061743e0281bf4ed03c68286512e7b492e9
2017-09-04 17:36:17 +12:00
Manish Goregaokar
b74c4d0f69
Bug 1386915 - Add nsLookAndFeel::NativeInit() virtual call for initializing native-side state; r=jfkthame
...
MozReview-Commit-ID: 8XKSC1AOI0N
2017-08-06 15:41:08 -07:00
Mats Palmgren
949cb19d0b
Bug 1377348 - Make nsLookAndFeel final to allow the compiler to devirtualize some calls. r=tn
...
MozReview-Commit-ID: 7AoZKsTyb3O
2017-06-30 03:34:15 +02:00
Martin Stransky
5141ddceb3
Bug 1158076 - postpone nsLookAndFeel module initialization, r=karlt
...
MozReview-Commit-ID: JY83xiXT1xf
--HG--
extra : rebase_source : a936ca56024f4e5c75830e492038ac2ca1a218ae
2017-03-30 15:03:50 +02:00
Martin Stransky
92edc8a6ec
Bug 1319075 - Use WidgetCache to get colors at nsLookAndFeel for GtkButton, GtkWindow, GtkScrollBar, r=karlt
...
Needs patch from Bug 1319066 to clean apply.
2016-11-23 02:00:00 +01:00
Andrew Comminos
bf63f14959
Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt
2015-08-21 16:38:15 -04:00
Martin Stransky
649e670ec4
Bug 1169233
- Get grey (inactive) text color from menu labels. r=karlt
2015-05-29 05:40:00 -04:00
Martin Stransky
0504bfc33a
Bug 1073117 - [gtk3] Use GTK_STYLE_CLASS_VIEW style for selected text rendering. r=karlt
...
It also merges some duplicated colors and adds GTK_STATE_FLAG_FOCUSED for selected text.
2014-12-08 01:35:00 -05:00
Martin Stransky
8142810dd2
Bug 1101582 - [GTK3] - Use window background color for ThreeDFace,ButtonFace. r=karlt
...
This fixes missing borders on non-natively-styled textareas.
2014-11-27 04:08:00 +01:00
Martin Stransky
592956bbf2
Bug 978172 - [GTK3] Fix doorhanger border. r=karlt
2014-06-24 01:28:00 -04:00
Martin Stransky
bb24b38f4e
Bug 982964 - [gtk3] Combo boxes have white text. r=karlt
2014-04-02 11:47:55 -04:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Martin Stransky
59fadf4e72
Bug 917270 - Rename widget/gtk2 to widget/gtk. r=karlt
...
--HG--
rename : widget/gtk2/Makefile.in => widget/gtk/Makefile.in
rename : widget/gtk2/WidgetTraceEvent.cpp => widget/gtk/WidgetTraceEvent.cpp
rename : widget/gtk2/compat/gdk/gdkdnd.h => widget/gtk/compat/gdk/gdkdnd.h
rename : widget/gtk2/compat/gdk/gdkkeysyms.h => widget/gtk/compat/gdk/gdkkeysyms.h
rename : widget/gtk2/compat/gdk/gdkvisual.h => widget/gtk/compat/gdk/gdkvisual.h
rename : widget/gtk2/compat/gdk/gdkwindow.h => widget/gtk/compat/gdk/gdkwindow.h
rename : widget/gtk2/compat/gdk/gdkx.h => widget/gtk/compat/gdk/gdkx.h
rename : widget/gtk2/compat/glib/gmem.h => widget/gtk/compat/glib/gmem.h
rename : widget/gtk2/compat/gtk/gtkcolorseldialog.h => widget/gtk/compat/gtk/gtkcolorseldialog.h
rename : widget/gtk2/compat/gtk/gtkdialog.h => widget/gtk/compat/gtk/gtkdialog.h
rename : widget/gtk2/compat/gtk/gtkplug.h => widget/gtk/compat/gtk/gtkplug.h
rename : widget/gtk2/compat/gtk/gtkselection.h => widget/gtk/compat/gtk/gtkselection.h
rename : widget/gtk2/compat/gtk/gtkwidget.h => widget/gtk/compat/gtk/gtkwidget.h
rename : widget/gtk2/compat/gtk/gtkwindow.h => widget/gtk/compat/gtk/gtkwindow.h
rename : widget/gtk2/crashtests/673390-1.html => widget/gtk/crashtests/673390-1.html
rename : widget/gtk2/crashtests/crashtests.list => widget/gtk/crashtests/crashtests.list
rename : widget/gtk2/gtk2drawing.c => widget/gtk/gtk2drawing.c
rename : widget/gtk2/gtk3drawing.c => widget/gtk/gtk3drawing.c
rename : widget/gtk2/gtkdrawing.h => widget/gtk/gtkdrawing.h
rename : widget/gtk2/maiRedundantObjectFactory.c => widget/gtk/maiRedundantObjectFactory.c
rename : widget/gtk2/maiRedundantObjectFactory.h => widget/gtk/maiRedundantObjectFactory.h
rename : widget/gtk2/moz.build => widget/gtk/moz.build
rename : widget/gtk2/mozcontainer.c => widget/gtk/mozcontainer.c
rename : widget/gtk2/mozcontainer.h => widget/gtk/mozcontainer.h
rename : widget/gtk2/nsAppShell.cpp => widget/gtk/nsAppShell.cpp
rename : widget/gtk2/nsAppShell.h => widget/gtk/nsAppShell.h
rename : widget/gtk2/nsBidiKeyboard.cpp => widget/gtk/nsBidiKeyboard.cpp
rename : widget/gtk2/nsBidiKeyboard.h => widget/gtk/nsBidiKeyboard.h
rename : widget/gtk2/nsCUPSShim.cpp => widget/gtk/nsCUPSShim.cpp
rename : widget/gtk2/nsCUPSShim.h => widget/gtk/nsCUPSShim.h
rename : widget/gtk2/nsClipboard.cpp => widget/gtk/nsClipboard.cpp
rename : widget/gtk2/nsClipboard.h => widget/gtk/nsClipboard.h
rename : widget/gtk2/nsColorPicker.cpp => widget/gtk/nsColorPicker.cpp
rename : widget/gtk2/nsColorPicker.h => widget/gtk/nsColorPicker.h
rename : widget/gtk2/nsDeviceContextSpecG.cpp => widget/gtk/nsDeviceContextSpecG.cpp
rename : widget/gtk2/nsDeviceContextSpecG.h => widget/gtk/nsDeviceContextSpecG.h
rename : widget/gtk2/nsDragService.cpp => widget/gtk/nsDragService.cpp
rename : widget/gtk2/nsDragService.h => widget/gtk/nsDragService.h
rename : widget/gtk2/nsFilePicker.cpp => widget/gtk/nsFilePicker.cpp
rename : widget/gtk2/nsFilePicker.h => widget/gtk/nsFilePicker.h
rename : widget/gtk2/nsGTKToolkit.h => widget/gtk/nsGTKToolkit.h
rename : widget/gtk2/nsGtkCursors.h => widget/gtk/nsGtkCursors.h
rename : widget/gtk2/nsGtkIMModule.cpp => widget/gtk/nsGtkIMModule.cpp
rename : widget/gtk2/nsGtkIMModule.h => widget/gtk/nsGtkIMModule.h
rename : widget/gtk2/nsGtkKeyUtils.cpp => widget/gtk/nsGtkKeyUtils.cpp
rename : widget/gtk2/nsGtkKeyUtils.h => widget/gtk/nsGtkKeyUtils.h
rename : widget/gtk2/nsGtkUtils.h => widget/gtk/nsGtkUtils.h
rename : widget/gtk2/nsIImageToPixbuf.h => widget/gtk/nsIImageToPixbuf.h
rename : widget/gtk2/nsIdleServiceGTK.cpp => widget/gtk/nsIdleServiceGTK.cpp
rename : widget/gtk2/nsIdleServiceGTK.h => widget/gtk/nsIdleServiceGTK.h
rename : widget/gtk2/nsImageToPixbuf.cpp => widget/gtk/nsImageToPixbuf.cpp
rename : widget/gtk2/nsImageToPixbuf.h => widget/gtk/nsImageToPixbuf.h
rename : widget/gtk2/nsLookAndFeel.cpp => widget/gtk/nsLookAndFeel.cpp
rename : widget/gtk2/nsLookAndFeel.h => widget/gtk/nsLookAndFeel.h
rename : widget/gtk2/nsNativeKeyBindings.cpp => widget/gtk/nsNativeKeyBindings.cpp
rename : widget/gtk2/nsNativeKeyBindings.h => widget/gtk/nsNativeKeyBindings.h
rename : widget/gtk2/nsNativeThemeGTK.cpp => widget/gtk/nsNativeThemeGTK.cpp
rename : widget/gtk2/nsNativeThemeGTK.h => widget/gtk/nsNativeThemeGTK.h
rename : widget/gtk2/nsPSPrinters.cpp => widget/gtk/nsPSPrinters.cpp
rename : widget/gtk2/nsPSPrinters.h => widget/gtk/nsPSPrinters.h
rename : widget/gtk2/nsPaperPS.cpp => widget/gtk/nsPaperPS.cpp
rename : widget/gtk2/nsPaperPS.h => widget/gtk/nsPaperPS.h
rename : widget/gtk2/nsPrintDialogGTK.cpp => widget/gtk/nsPrintDialogGTK.cpp
rename : widget/gtk2/nsPrintDialogGTK.h => widget/gtk/nsPrintDialogGTK.h
rename : widget/gtk2/nsPrintOptionsGTK.cpp => widget/gtk/nsPrintOptionsGTK.cpp
rename : widget/gtk2/nsPrintOptionsGTK.h => widget/gtk/nsPrintOptionsGTK.h
rename : widget/gtk2/nsPrintSettingsGTK.cpp => widget/gtk/nsPrintSettingsGTK.cpp
rename : widget/gtk2/nsPrintSettingsGTK.h => widget/gtk/nsPrintSettingsGTK.h
rename : widget/gtk2/nsScreenGtk.cpp => widget/gtk/nsScreenGtk.cpp
rename : widget/gtk2/nsScreenGtk.h => widget/gtk/nsScreenGtk.h
rename : widget/gtk2/nsScreenManagerGtk.cpp => widget/gtk/nsScreenManagerGtk.cpp
rename : widget/gtk2/nsScreenManagerGtk.h => widget/gtk/nsScreenManagerGtk.h
rename : widget/gtk2/nsSound.cpp => widget/gtk/nsSound.cpp
rename : widget/gtk2/nsSound.h => widget/gtk/nsSound.h
rename : widget/gtk2/nsToolkit.cpp => widget/gtk/nsToolkit.cpp
rename : widget/gtk2/nsWidgetFactory.cpp => widget/gtk/nsWidgetFactory.cpp
rename : widget/gtk2/nsWindow.cpp => widget/gtk/nsWindow.cpp
rename : widget/gtk2/nsWindow.h => widget/gtk/nsWindow.h
2013-09-23 09:21:57 -04:00