fix(input-sources): text size

This commit is contained in:
Ashley Wulber 2024-05-17 20:01:40 -04:00 committed by GitHub
parent 87250b5e50
commit 37a60b7759
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 49 deletions

View file

@ -2,9 +2,10 @@
// SPDX-License-Identifier: GPL-3.0-only
use config::{CosmicPanelButtonConfig, IndividualConfig, Override};
use cosmic::applet::cosmic_panel_config::PanelAnchor;
use cosmic::applet::cosmic_panel_config::{PanelAnchor, PanelSize};
use cosmic::applet::Size;
use cosmic::iced::Length;
use cosmic::iced_widget::{row, text};
use cosmic::iced_widget::row;
use cosmic::widget::vertical_space;
use cosmic::{app, iced, iced_style::application, theme::Theme};
use cosmic_config::{Config, CosmicConfigEntry};
@ -97,6 +98,13 @@ impl cosmic::Application for Button {
PanelAnchor::Left | PanelAnchor::Right
)
|| matches!(self.config.force_presentation, Some(Override::Icon))
|| matches!(
(&self.core.applet.size, &self.config.force_presentation),
(
Size::PanelSize(PanelSize::M | PanelSize::L | PanelSize::XL),
None
)
)
{
self.core.applet.icon_button_from_handle(
cosmic::widget::icon::from_name(self.desktop.icon.clone().unwrap()).handle(),