forked from 1b-agent/opencadstudio-upstream
Adjust plus button spacing next to Start tab
- Changed button padding from [5, 10] to [4, 8] to match layout tabs - Changed container left padding from 6.0 to 2.0 for consistent spacing - Plus button now has same distance from Start tab as from Layout tabs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
56e09cd3f5
commit
b3e3555f4f
1 file changed
+2
-2
+2
-2
@@ -2930,7 +2930,7 @@ pub(super) fn doc_tab_bar<'a>(
|
|||||||
let new_btn = button(text("+").size(14))
|
let new_btn = button(text("+").size(14))
|
||||||
.on_press(Message::TabNew)
|
.on_press(Message::TabNew)
|
||||||
.height(iced::Length::Fixed(28.0))
|
.height(iced::Length::Fixed(28.0))
|
||||||
.padding([5, 10])
|
.padding([4, 8])
|
||||||
.style(|theme: &Theme, status| {
|
.style(|theme: &Theme, status| {
|
||||||
let palette = theme.palette();
|
let palette = theme.palette();
|
||||||
let hovered = matches!(
|
let hovered = matches!(
|
||||||
@@ -2960,7 +2960,7 @@ pub(super) fn doc_tab_bar<'a>(
|
|||||||
top: 0.0,
|
top: 0.0,
|
||||||
right: 0.0,
|
right: 0.0,
|
||||||
bottom: 0.0,
|
bottom: 0.0,
|
||||||
left: 6.0,
|
left: 2.0,
|
||||||
})
|
})
|
||||||
.into(),
|
.into(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user