Better plugin reloading and theme parsing

This commit is contained in:
Gregory Schier
2025-07-03 12:25:22 -07:00
parent 36bbb87a5e
commit 2a6f139d36
5 changed files with 17 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ pub(crate) fn set_title<R: Runtime>(window: Window<R>, title: &str) {
pub(crate) fn set_theme<R: Runtime>(window: Window<R>, bg_color: &str) {
#[cfg(target_os = "macos")]
{
match hex_color::HexColor::parse_rgb(bg_color.trim()) {
match csscolorparser::parse(bg_color.trim()) {
Ok(color) => {
crate::mac::update_window_theme(window, color);
}