mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
show x button at left by respecting the env settings
This commit is contained in:
parent
0a9b2385aa
commit
bf039dd947
1 changed files with 5 additions and 1 deletions
|
|
@ -14,8 +14,12 @@ impl Tab for TabBar {
|
||||||
fn tab(window_action: &Rc<WindowAction>, view: &TabView) -> Self {
|
fn tab(window_action: &Rc<WindowAction>, view: &TabView) -> Self {
|
||||||
TabBar::builder()
|
TabBar::builder()
|
||||||
.autohide(false)
|
.autohide(false)
|
||||||
.expand_tabs(false)
|
|
||||||
.end_action_widget(&Button::append(window_action)) // @TODO find solution to append after tabs
|
.end_action_widget(&Button::append(window_action)) // @TODO find solution to append after tabs
|
||||||
|
.expand_tabs(false)
|
||||||
|
.inverted(gtk::Settings::default().is_some_and(|s| {
|
||||||
|
s.gtk_decoration_layout()
|
||||||
|
.is_some_and(|l| l.starts_with("close"))
|
||||||
|
})) // show `x` button at left by respecting the env settings
|
||||||
.view(view)
|
.view(view)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue