Revert accidental newbutton bg color change (#2029)

This commit is contained in:
Mark Thompson 2024-03-23 13:26:46 -05:00 committed by GitHub
parent 81e24d582d
commit 1a87f2d701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -694,7 +694,7 @@ FileManagerView::FileManagerView(
button_show_hidden_files.on_select = [this]() { button_show_hidden_files.on_select = [this]() {
show_hidden_files = !show_hidden_files; show_hidden_files = !show_hidden_files;
button_show_hidden_files.set_color(show_hidden_files ? Color::dark_green() : Color::dark_grey()); button_show_hidden_files.set_color(show_hidden_files ? Color::green() : Color::dark_grey());
reload_current(); reload_current();
}; };
} }

View File

@ -261,19 +261,19 @@ class FileManagerView : public FileManBaseView {
{22 * 8, 29 * 8, 4 * 8, 32}, {22 * 8, 29 * 8, 4 * 8, 32},
{}, {},
&bitmap_icon_new_dir, &bitmap_icon_new_dir,
Color::dark_green()}; Color::green()};
NewButton button_new_file{ NewButton button_new_file{
{26 * 8, 29 * 8, 4 * 8, 32}, {26 * 8, 29 * 8, 4 * 8, 32},
{}, {},
&bitmap_icon_new_file, &bitmap_icon_new_file,
Color::dark_green()}; Color::green()};
NewButton button_open_notepad{ NewButton button_open_notepad{
{0 * 8, 34 * 8, 4 * 8, 32}, {0 * 8, 34 * 8, 4 * 8, 32},
{}, {},
&bitmap_icon_notepad, &bitmap_icon_notepad,
Color::dark_orange()}; Color::orange()};
NewButton button_rename_timestamp{ NewButton button_rename_timestamp{
@ -288,7 +288,7 @@ class FileManagerView : public FileManBaseView {
{4 * 8, 34 * 8, 4 * 8, 32}, {4 * 8, 34 * 8, 4 * 8, 32},
{}, {},
&bitmap_icon_trim, &bitmap_icon_trim,
Color::dark_orange()}; Color::orange()};
NewButton button_show_hidden_files{ NewButton button_show_hidden_files{
{17 * 8, 34 * 8, 4 * 8, 32}, {17 * 8, 34 * 8, 4 * 8, 32},

View File

@ -523,7 +523,7 @@ class NewButton : public Widget {
protected: protected:
virtual Style paint_style(); virtual Style paint_style();
Color color_; Color color_;
Color bg_color_{Color::light_grey()}; Color bg_color_{Color::grey()};
private: private:
std::string text_; std::string text_;