refactor: simplify theme usage and enhance AppsPlugin structure

This commit is contained in:
2026-03-15 16:30:35 +01:00
parent 1ac9dde347
commit 6780444caa
3 changed files with 76 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ use iced::{
use k_launcher_kernel::{Kernel, SearchResult};
use crate::theme::AeroColors;
use crate::theme;
static INPUT_ID: std::sync::LazyLock<iced::widget::Id> =
std::sync::LazyLock::new(|| iced::widget::Id::new("search"));
@@ -89,7 +89,7 @@ fn update(state: &mut KLauncherApp, message: Message) -> Task<Message> {
}
fn view(state: &KLauncherApp) -> Element<'_, Message> {
let colors = AeroColors::standard();
let colors = &*theme::AERO;
let search_bar = text_input("Search...", &state.query)
.id(INPUT_ID.clone())