@@ -65,12 +65,12 @@ namespace OvEditor::Core
6565
6666 _UpdateGoButton ({});
6767
68- openProjectButton.backgroundColor = OVUI_STYLE (Warning );
69- openProjectButton.hoveredBackgroundColor = OVUI_STYLE (WarningHovered );
70- openProjectButton.clickedBackgroundColor = OVUI_STYLE (WarningActive );
71- newProjectButton.backgroundColor = OVUI_STYLE (Success );
72- newProjectButton.hoveredBackgroundColor = OVUI_STYLE (SuccessHovered );
73- newProjectButton.clickedBackgroundColor = OVUI_STYLE (SuccessActive );
68+ openProjectButton.backgroundColor = OVUI_STYLE (WarningButton );
69+ openProjectButton.hoveredBackgroundColor = OVUI_STYLE (WarningButtonHovered );
70+ openProjectButton.clickedBackgroundColor = OVUI_STYLE (WarningButtonActive );
71+ newProjectButton.backgroundColor = OVUI_STYLE (SuccessButton );
72+ newProjectButton.hoveredBackgroundColor = OVUI_STYLE (SuccessButtonHovered );
73+ newProjectButton.clickedBackgroundColor = OVUI_STYLE (SuccessButtonActive );
7474
7575 openProjectButton.ClickedEvent += [this ] {
7676 OvWindowing::Dialogs::OpenFileDialog dialog (" Open project" );
@@ -141,12 +141,12 @@ namespace OvEditor::Core
141141 auto & openButton = actions.CreateWidget <OvUI::Widgets::Buttons::Button>(" Open" );
142142 auto & deleteButton = actions.CreateWidget <OvUI::Widgets::Buttons::Button>(" Delete" );
143143
144- openButton.backgroundColor = OVUI_STYLE (Warning );
145- openButton.hoveredBackgroundColor = OVUI_STYLE (WarningHovered );
146- openButton.clickedBackgroundColor = OVUI_STYLE (WarningActive );
147- deleteButton.backgroundColor = OVUI_STYLE (Danger );
148- deleteButton.hoveredBackgroundColor = OVUI_STYLE (DangerHovered );
149- deleteButton.clickedBackgroundColor = OVUI_STYLE (DangerActive );
144+ openButton.backgroundColor = OVUI_STYLE (WarningButton );
145+ openButton.hoveredBackgroundColor = OVUI_STYLE (WarningButtonHovered );
146+ openButton.clickedBackgroundColor = OVUI_STYLE (WarningButtonActive );
147+ deleteButton.backgroundColor = OVUI_STYLE (DangerButton );
148+ deleteButton.hoveredBackgroundColor = OVUI_STYLE (DangerButtonHovered );
149+ deleteButton.clickedBackgroundColor = OVUI_STYLE (DangerButtonActive );
150150
151151 openButton.ClickedEvent += [this , &text, &actions, project] {
152152 if (!_TryFinish ({ project }))
@@ -183,9 +183,9 @@ namespace OvEditor::Core
183183 void _UpdateGoButton (const std::string& p_path)
184184 {
185185 const bool validPath = !p_path.empty ();
186- m_goButton->backgroundColor = validPath ? OVUI_STYLE (Success ) : OVUI_STYLE (Button);
187- m_goButton->hoveredBackgroundColor = validPath ? OVUI_STYLE (SuccessHovered ) : OVUI_STYLE (ButtonHovered);
188- m_goButton->clickedBackgroundColor = validPath ? OVUI_STYLE (SuccessActive ) : OVUI_STYLE (ButtonActive);
186+ m_goButton->backgroundColor = validPath ? OVUI_STYLE (SuccessButton ) : OVUI_STYLE (Button);
187+ m_goButton->hoveredBackgroundColor = validPath ? OVUI_STYLE (SuccessButtonHovered ) : OVUI_STYLE (ButtonHovered);
188+ m_goButton->clickedBackgroundColor = validPath ? OVUI_STYLE (SuccessButtonActive ) : OVUI_STYLE (ButtonActive);
189189 m_goButton->disabled = !validPath;
190190 }
191191
0 commit comments