Skip to content

Commit

Permalink
remove custom theme since iced 0.12 has amazing built in themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Feb 20, 2024
1 parent c222660 commit 458e215
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 358 deletions.
12 changes: 4 additions & 8 deletions gui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
mod file_dialog;
mod theme;
mod widgets;
use theme::{Element, Theme};
use widgets::{menu_bar, pane_grid};

use blaze_core::data::{FileTab, Tab};
use iced::{
font,
executor, font,
widget::{
column,
pane_grid::{Axis, DragEvent, Pane, ResizeEvent, State},
},
Application, Command, Settings, Subscription,
Application, Command, Element, Settings, Subscription, Theme,
};
use slotmap::{DefaultKey, SlotMap};

Expand All @@ -22,7 +20,6 @@ pub fn start_gui() -> iced::Result {
pub(crate) struct Blaze {
data: SlotMap<DefaultKey, Tab>,
panes: Panes,
theme: theme::Theme,
}

pub(crate) struct Panes {
Expand Down Expand Up @@ -98,7 +95,7 @@ impl PaneState {
}

impl Application for Blaze {
type Executor = iced::executor::Default;
type Executor = executor::Default;
type Message = Message;
type Theme = Theme;
type Flags = ();
Expand All @@ -107,7 +104,6 @@ impl Application for Blaze {
(
Blaze {
data: SlotMap::default(),
theme: Theme::default(),
panes: Panes::default(),
},
Command::batch(vec![
Expand Down Expand Up @@ -230,7 +226,7 @@ impl Application for Blaze {
}

fn theme(&self) -> Theme {
self.theme.clone()
iced::Theme::Dark
}

fn subscription(&self) -> Subscription<Message> {
Expand Down
326 changes: 0 additions & 326 deletions gui/src/theme.rs

This file was deleted.

Loading

0 comments on commit 458e215

Please sign in to comment.