mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix linux build
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
use log::warn;
|
|
||||||
use tauri::{command, Runtime, Window};
|
use tauri::{command, Runtime, Window};
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
@@ -19,6 +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) {
|
pub(crate) fn set_theme<R: Runtime>(window: Window<R>, bg_color: &str) {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
{
|
{
|
||||||
|
use log::warn;
|
||||||
match csscolorparser::parse(bg_color.trim()) {
|
match csscolorparser::parse(bg_color.trim()) {
|
||||||
Ok(color) => {
|
Ok(color) => {
|
||||||
crate::mac::update_window_theme(window, color);
|
crate::mac::update_window_theme(window, color);
|
||||||
|
|||||||
Reference in New Issue
Block a user