blob: e2751542de50ed397e9ab22ce6ba6fbb5a507160 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/tray/tray_detailed_view.h"
namespace views {
class Label;
class RadioButton;
class ToggleButton;
} // namespace views
namespace ash {
// This view displays options to switch between themed and neutral
// color mode for the system. Accessed by clicking on the dark mode
// feature pod label button.
class DarkModeDetailedView : public TrayDetailedView {
explicit DarkModeDetailedView(DetailedViewDelegate* delegate);
DarkModeDetailedView(const DarkModeDetailedView& other) = delete;
DarkModeDetailedView& operator=(const DarkModeDetailedView& other) = delete;
~DarkModeDetailedView() override;
// views::View:
const char* GetClassName() const override;
void OnThemeChanged() override;
// Updates the status of |toggle_| on |dark_mode_enabled|.
void UpdateToggleButton(bool dark_mode_enabled);
// Updates the currently checked radio button.
void UpdateCheckedButton(bool is_themed);
void CreateItems();
views::ToggleButton* toggle_ = nullptr;
views::RadioButton* themed_mode_button_ = nullptr;
views::RadioButton* neutral_mode_button_ = nullptr;
views::Label* themed_label_ = nullptr;
views::Label* neutral_label_ = nullptr;
} // namespace ash