-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify NativeTheme changed when theme changes
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h | ||
index 2efbe5c4d899ec9ec683b6f8ecb058cbe903cd94..d43b471c277a95b3daa245a25d74c2e5624211de 100644 | ||
--- a/ui/views/widget/widget.h | ||
+++ b/ui/views/widget/widget.h | ||
@@ -637,7 +637,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, | ||
|
||
// Notifies the view hierarchy contained in this widget that theme resources | ||
// changed. | ||
- void ThemeChanged(); | ||
+ virtual void ThemeChanged(); | ||
|
||
// Notifies the view hierarchy contained in this widget that the device scale | ||
// factor changed. |