Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 2ef346a2f5 Bug 1754225 - Allow using dark themed scrollbars on GTK too. r=stransky,mstange
This is faster and more straight-forward code than the old
ShouldUseDarkScrollbar shenanigans, and allows to have dark-themed
scrollbars.

Differential Revision: https://phabricator.services.mozilla.com/D138077
2022-02-09 11:27:16 +00:00
Andi-Bogdan Postelnicu 30631a4a9b Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre
Updated with clang-format version 13.0.0 (taskcluster-dIIauZE0TkuXy6_23BQhcw)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D137147
2022-01-31 17:00:21 +00:00
Emilio Cobos Álvarez f39ab4f51a Bug 1749531 - Allow to override native theme scrollbar styles. r=mstange
Depends on D136129

Differential Revision: https://phabricator.services.mozilla.com/D136130
2022-01-25 21:31:44 +00:00
Emilio Cobos Álvarez a26bbcce75 Bug 1749531 - Move RecomputeScrollbarParams call to SetScrollbarDrawing. r=mstange
Depends on D136127

Differential Revision: https://phabricator.services.mozilla.com/D136128
2022-01-25 21:31:43 +00:00
Emilio Cobos Álvarez 4c41f32a27 Bug 1749531 - Manage native theme lifetime from Theme.cpp. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D136127
2022-01-25 21:31:43 +00:00
Emilio Cobos Álvarez de7b391af7 Bug 1749645 - Rename nsNativeBasicTheme{,Cocoa} to Theme{,Cocoa}. r=mstange
We have this situation right now where all the themes are inheriting from
nsNativeBasicTheme. Rename it to a nicer name, and clean up some code while at
it.

In the future I'd like to simplify the inheritance chain to remove
nsNativeTheme altogether (so that all nsITheme implementations use
mozilla::widget::Theme).

That's not hard to do mechanically, but rather than dumping all of
nsNativeTheme into Theme I'd like to do it a bit more carefully, to hopefully
remove a lot of the helpers that nsNativeTheme has to deal with XUL and so on
and use something nicer. Eventually the inheritance chain will be something
like:

 * nsITheme : public nsISupports
 * Theme : public nsITheme, public nsITimerCallback, public nsINamed
 * ThemeCocoa : public Theme
 * nsNativeThemeCocoa : public ThemeCocoa
 * nsNativeThemeWin : public Theme
 * nsNativeThemeGtk : public Theme

Differential Revision: https://phabricator.services.mozilla.com/D135668
2022-01-12 16:33:31 +00:00