Update Platform Controls (#13751)

Continuing from #13597, this PR refactors platform controls to extract a
generic set of platform controls that can be used for any platform that
does not define it's own/we don't use the system ones.

In the future, these controls will likely be used as a fallback on
windows as well when the windows icon font isn't available.

Release Notes:

- Added updated window controls on Linux
This commit is contained in:
Nate Butler
2024-07-02 16:15:59 -04:00
committed by GitHub
parent eb845ee201
commit 7db68547fa
11 changed files with 272 additions and 149 deletions
+2
View File
@@ -23,6 +23,7 @@ pub enum Color {
Selected,
Success,
Warning,
Custom(Hsla),
}
impl Color {
@@ -46,6 +47,7 @@ impl Color {
Color::Selected => cx.theme().colors().text_accent,
Color::Success => cx.theme().status().success,
Color::Warning => cx.theme().status().warning,
Color::Custom(color) => *color,
}
}
}