Skip to content

Commit

Permalink
style change
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Sep 9, 2023
1 parent 940a279 commit b4bde5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ edition = "2021"
[dependencies]
dark-light = "1.0.0"
iced = { version = "0.10.0", features = ["palette"]}
iced_aw = { version = "0.7", default-features = false, features = ["icons", "menu", "tab_bar"] }
log = "0.4.18"
palette = "*"
pretty_env_logger = "0.5"
rfd = "0.11.4"
slotmap = "1.0.6"

[dependencies.iced_aw]
git = "https:/Redhawk18/iced_aw.git"
rev = "061c453"
default-features = false
features = ["icons", "menu", "tab_bar"]
2 changes: 1 addition & 1 deletion src/gui/theme/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl tab_bar::StyleSheet for Theme {
TabBar::Primary => tab_bar::Appearance {
background: Some(Background::Color(self.colors.background.default)),
border_color: Some(self.colors.primary.default),
border_width: 4.0,
border_width: 1.0,
icon_background: Some(Background::Color(self.colors.background.default)),
icon_border_radius: 0.0.into(),
icon_color: self.colors.accent.default,
Expand Down
7 changes: 5 additions & 2 deletions src/gui/widgets/tab_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ use crate::gui::{
Message, Tab,
};

use iced::widget::{column, text_input, Column};
use iced::{
widget::{column, text_input, Column},
Length,
};
use iced_aw::{TabBar, TabLabel};

pub fn tab_bar(active: usize, data: &[&Tab]) -> Column<'static, Message, Renderer> {
Expand Down Expand Up @@ -31,7 +34,7 @@ fn head(active: usize, data: &[&Tab]) -> TabBar<Message, usize, Renderer> {
}
}

tab_bar.set_active_tab(&active)
tab_bar.set_active_tab(&active).tab_width(Length::Shrink)
}

fn body(active: usize, data: &[&Tab]) -> Element<'static, Message> {
Expand Down

0 comments on commit b4bde5b

Please sign in to comment.