Skip to content

Commit

Permalink
feat: remove tauri theme plugin and replace with new cirrus user defi…
Browse files Browse the repository at this point in the history
…ned theme initializer
  • Loading branch information
THEGOLDENPRO committed May 15, 2024
1 parent 2bab890 commit f550640
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cirrus
Submodule cirrus updated 1 files
+21 −11 tauri_frontend/theme.ts
1 change: 0 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ tauri = { version = "1.6.1", features = [ "cli", "window-all", "fs-read-dir", "f
image = "0.25.0"
rfd = "0.14.0"
imagesize = "0.12.0"
tauri-plugin-theme = "0.2.0"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
Expand Down
5 changes: 0 additions & 5 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use tauri_plugin_theme::ThemePlugin;

use std::path::PathBuf;
use rfd::AsyncFileDialog;
use image::ImageFormat;
Expand All @@ -22,10 +20,7 @@ async fn select_image() {
}

fn main() {
let mut ctx = tauri::generate_context!();

tauri::Builder::default()
.plugin(ThemePlugin::init(ctx.config_mut()))
.setup(|app| {
match app.get_cli_matches() {
Ok(matches) => {
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as CTKTailwind from "./cirrus/tailwind";

const config = {
darkMode: "selector",
plugins: [
CTKTailwind.Colours
],
Expand Down

0 comments on commit f550640

Please sign in to comment.