Skip to content

Commit

Permalink
Revert accidental newbutton bg color change (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotherNgineer authored Mar 23, 2024
1 parent 81e24d5 commit 1a87f2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion firmware/application/apps/ui_fileman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ FileManagerView::FileManagerView(

button_show_hidden_files.on_select = [this]() {
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();
};
}
Expand Down
8 changes: 4 additions & 4 deletions firmware/application/apps/ui_fileman.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ class FileManagerView : public FileManBaseView {
{22 * 8, 29 * 8, 4 * 8, 32},
{},
&bitmap_icon_new_dir,
Color::dark_green()};
Color::green()};

NewButton button_new_file{
{26 * 8, 29 * 8, 4 * 8, 32},
{},
&bitmap_icon_new_file,
Color::dark_green()};
Color::green()};

NewButton button_open_notepad{
{0 * 8, 34 * 8, 4 * 8, 32},
{},
&bitmap_icon_notepad,
Color::dark_orange()};
Color::orange()};

NewButton button_rename_timestamp{

Expand All @@ -288,7 +288,7 @@ class FileManagerView : public FileManBaseView {
{4 * 8, 34 * 8, 4 * 8, 32},
{},
&bitmap_icon_trim,
Color::dark_orange()};
Color::orange()};

NewButton button_show_hidden_files{
{17 * 8, 34 * 8, 4 * 8, 32},
Expand Down
2 changes: 1 addition & 1 deletion firmware/common/ui_widget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class NewButton : public Widget {
protected:
virtual Style paint_style();
Color color_;
Color bg_color_{Color::light_grey()};
Color bg_color_{Color::grey()};

private:
std::string text_;
Expand Down

0 comments on commit 1a87f2d

Please sign in to comment.