fix(displays): center-align tab bar text

This commit is contained in:
Michael Aaron Murphy 2024-03-12 16:34:32 +01:00
parent a0eda0fba9
commit 6c232b509e
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -8,7 +8,7 @@ pub mod text;
use crate::{app, pages};
use apply::Apply;
use arrangement::Arrangement;
use cosmic::iced::Length;
use cosmic::iced::{Alignment, Length};
use cosmic::iced_widget::scrollable::{Direction, Properties, RelativeOffset};
use cosmic::widget::{
column, container, dropdown, list_column, segmented_button, tab_bar, toggler,
@ -459,8 +459,9 @@ impl Page {
let mut content = column().spacing(theme.cosmic().space_m());
if self.list.outputs.len() > 1 {
let display_switcher =
tab_bar::horizontal(&self.display_tabs).on_activate(Message::Display);
let display_switcher = tab_bar::horizontal(&self.display_tabs)
.button_alignment(Alignment::Center)
.on_activate(Message::Display);
let display_enable = list_column().add(cosmic::widget::settings::item(
&*text::DISPLAY_ENABLE,