Prepare 0.1.0-beta.2 feature freeze and release validation

This commit is contained in:
Samuel Onoja committed 2026-10-14 18:16:55 +01:00
1 parent a62f1367bd
commit 77fa25e5f7
14 files changed
+202 -145

No files matched your search

+14 -14
View File
@@ -26,17 +26,20 @@ impl FereseShell {
} else {
foreground
};
let fill = container(Space::new().width((BODY_WIDTH - 4.) * f32::from(percent) / 100.).height(10)).class(
theme::Container::custom(move |_| container::Style {
background: Some(Background::Color(outline.scale_alpha(0.16))),
border: Border {
shape: cosmic::iced::border::Shape::Continuous,
radius: 4.0.into(),
..Default::default()
},
let fill = container(
Space::new()
.width((BODY_WIDTH - 4.) * f32::from(percent) / 100.)
.height(10),
)
.class(theme::Container::custom(move |_| container::Style {
background: Some(Background::Color(outline.scale_alpha(0.16))),
border: Border {
shape: cosmic::iced::border::Shape::Continuous,
radius: 4.0.into(),
..Default::default()
}),
);
},
..Default::default()
}));
let number = self
.render
.text(if show_percentage {
@@ -72,9 +75,6 @@ impl FereseShell {
},
..Default::default()
}));
row![body, terminal]
.spacing(1)
.align_y(Alignment::Center)
.into()
row![body, terminal].spacing(1).align_y(Alignment::Center).into()
}
}
+4 -4
View File
@@ -18,10 +18,10 @@ pub(super) fn run(target: Target, terminal: &[String]) -> Result<(), String> {
} else {
open("gio", &[std::ffi::OsStr::new("launch"), desktop.as_os_str()])
};
if result.is_ok() {
if let Err(error) = apps::record(&id) {
eprintln!("Could not save launcher history: {error}");
}
if result.is_ok()
&& let Err(error) = apps::record(&id)
{
eprintln!("Could not save launcher history: {error}");
}
return result;
}
+8 -6
View File
@@ -464,12 +464,14 @@ impl FereseShell {
if launcher.closing && !launcher.progress.is_animating() {
return self.finish_launcher();
}
if !launcher.closing && launcher.query.is_empty() && launcher.category == Some(Category::Windows) {
if let Some(control) = &self.control {
launcher
.thumbnails
.refresh(&launcher.rows, launcher.selected, control, now);
}
if !launcher.closing
&& launcher.query.is_empty()
&& launcher.category == Some(Category::Windows)
&& let Some(control) = &self.control
{
launcher
.thumbnails
.refresh(&launcher.rows, launcher.selected, control, now);
}
if !launcher.closing
&& now.duration_since(launcher.refresh) >= Duration::from_secs(1)
+4 -3
View File
@@ -177,9 +177,10 @@ impl FereseShell {
..Default::default()
};
strip = strip.push(
button::custom(
crate::bar_content(self.battery_indicator(self.config.theme, opacity, true), 28.)
)
button::custom(crate::bar_content(
self.battery_indicator(self.config.theme, opacity, true),
28.,
))
.name(format!("Low battery, {percent} percent. Open battery controls"))
.padding(0)
.height(28)
+12 -9
View File
@@ -15,15 +15,18 @@ impl FereseShell {
let foreground = color_with_opacity(self.config.theme.text_primary, opacity);
Some(motion::button(
self.render,
button::custom(crate::bar_content(self.battery_indicator(self.config.theme, opacity, true), 28.))
.name(format!(
"Battery, {percent} percent, {}. Open battery controls",
battery.status
))
.padding([0, 3])
.width(WIDTH as f32)
.height(28)
.on_press(cosmic::Action::App(Message::HubOpen(id, status_ui::Menu::Battery))),
button::custom(crate::bar_content(
self.battery_indicator(self.config.theme, opacity, true),
28.,
))
.name(format!(
"Battery, {percent} percent, {}. Open battery controls",
battery.status
))
.padding([0, 3])
.width(WIDTH as f32)
.height(28)
.on_press(cosmic::Action::App(Message::HubOpen(id, status_ui::Menu::Battery))),
foreground,
active,
opacity,
+1 -6
View File
@@ -377,12 +377,7 @@ impl FereseShell {
.width(Length::Fixed(22.))
.into()
};
let badge = ferese_theme::menus::badge(
heading_icon,
color(theme.accent),
p,
self.render.radius(20.),
);
let badge = ferese_theme::menus::badge(heading_icon, color(theme.accent), p, self.render.radius(20.));
let mut heading = ferese_theme::menus::heading(badge, kind.title(), self.render.font);
let style = MenuStyle {
theme,
+6 -2
View File
@@ -118,8 +118,12 @@ pub(super) fn view<'a>(
container(shell.battery_indicator(theme, p, true))
.center_x(Length::Fill)
.center_y(28),
shell.render.text("Battery").size(11)
.width(Length::Fill).height(16)
shell
.render
.text("Battery")
.size(11)
.width(Length::Fill)
.height(16)
.align_x(alignment::Horizontal::Center)
.class(theme::Text::Color(muted)),
]
+3 -7
View File
@@ -461,7 +461,7 @@ impl FereseShell {
Event::Window(window::Event::Closed) => {
self.closing_menu_effects.remove(&id);
Task::none()
},
}
Event::PlatformSpecific(PlatformSpecific::Wayland(wayland::Event::Frame(_, surface, frame_id)))
if self.menu.as_ref().is_some_and(|menu| menu.id == frame_id) =>
{
@@ -523,12 +523,8 @@ impl FereseShell {
// The first panel presentation supplies the role and measured shape
// together with its buffer. Enabling the role here would paint the
// whole surface before those bounds arrive.
let binding = EffectsBinding::attach_role(
&mut self.effects_context,
surface,
None,
if hidden { 0.0 } else { 1.0 },
);
let binding =
EffectsBinding::attach_role(&mut self.effects_context, surface, None, if hidden { 0.0 } else { 1.0 });
match binding {
Ok(binding) => entry.effects = Some(binding),