feat: make window visual effect state customizable (#25083)
This commit is contained in:
parent
c0440a35f2
commit
024ea32313
5 changed files with 49 additions and 1 deletions
|
@ -158,6 +158,12 @@ class NativeWindowMac : public NativeWindow, public ui::NativeThemeObserver {
|
|||
gfx::Point GetTrafficLightPosition() const override;
|
||||
void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override;
|
||||
|
||||
enum class VisualEffectState {
|
||||
FOLLOW_WINDOW,
|
||||
ACTIVE,
|
||||
INACTIVE,
|
||||
};
|
||||
|
||||
enum class TitleBarStyle {
|
||||
NORMAL,
|
||||
HIDDEN,
|
||||
|
@ -219,6 +225,9 @@ class NativeWindowMac : public NativeWindow, public ui::NativeThemeObserver {
|
|||
// The "titleBarStyle" option.
|
||||
TitleBarStyle title_bar_style_ = TitleBarStyle::NORMAL;
|
||||
|
||||
// The "visualEffectState" option.
|
||||
VisualEffectState visual_effect_state_ = VisualEffectState::FOLLOW_WINDOW;
|
||||
|
||||
// The visibility mode of window button controls when explicitly set through
|
||||
// setWindowButtonVisibility().
|
||||
base::Optional<bool> window_button_visibility_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue