chore: bump version to 0.2.1 and update related files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-config"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -93,7 +93,10 @@ pub struct AppearanceCfg {
|
||||
pub row_radius: f32,
|
||||
pub placeholder: String,
|
||||
pub selected_row_rgba: Rgba,
|
||||
pub selected_text_rgba: Rgba,
|
||||
pub selected_description_rgba: Rgba,
|
||||
pub unselected_row_rgba: Rgba,
|
||||
pub text_rgba: Rgba,
|
||||
pub description_rgba: Rgba,
|
||||
pub no_results_rgba: Rgba,
|
||||
pub error_rgba: Rgba,
|
||||
@@ -113,7 +116,10 @@ impl Default for AppearanceCfg {
|
||||
row_radius: 4.0,
|
||||
placeholder: "Search apps, type > for commands, = for math".to_string(),
|
||||
selected_row_rgba: Rgba::new(229.0, 125.0, 33.0, 1.0),
|
||||
selected_text_rgba: Rgba::new(255.0, 255.0, 255.0, 1.0),
|
||||
selected_description_rgba: Rgba::new(240.0, 240.0, 240.0, 0.9),
|
||||
unselected_row_rgba: Rgba::new(255.0, 255.0, 255.0, 0.07),
|
||||
text_rgba: Rgba::new(255.0, 255.0, 255.0, 1.0),
|
||||
description_rgba: Rgba::new(210.0, 215.0, 230.0, 1.0),
|
||||
no_results_rgba: Rgba::new(180.0, 180.0, 200.0, 0.5),
|
||||
error_rgba: Rgba::new(255.0, 80.0, 80.0, 1.0),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-domain"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-kernel"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-os-bridge"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-plugin-host"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-ui-core"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-ui-egui"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -43,14 +43,25 @@ pub fn render_result_list(
|
||||
}
|
||||
|
||||
fn render_result_row(ui: &mut Ui, result: &SearchResult, is_selected: bool, cfg: &AppearanceCfg) {
|
||||
let title_color = if is_selected {
|
||||
to_color32(&cfg.selected_text_rgba)
|
||||
} else {
|
||||
to_color32(&cfg.text_rgba)
|
||||
};
|
||||
let desc_color = if is_selected {
|
||||
to_color32(&cfg.selected_description_rgba)
|
||||
} else {
|
||||
to_color32(&cfg.description_rgba)
|
||||
};
|
||||
|
||||
style::result_row_frame(is_selected, cfg).show(ui, |ui| {
|
||||
ui.set_width(ui.available_width());
|
||||
ui.horizontal(|ui| {
|
||||
ui.add_space(8.0);
|
||||
ui.vertical(|ui| {
|
||||
ui.label(result.title.as_str());
|
||||
ui.colored_label(title_color, result.title.as_str());
|
||||
if let Some(desc) = &result.description {
|
||||
ui.colored_label(to_color32(&cfg.description_rgba), desc.as_ref());
|
||||
ui.colored_label(desc_color, desc.as_ref());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher-ui"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -113,9 +113,12 @@ fn result_row<'a>(
|
||||
};
|
||||
|
||||
container(
|
||||
row![result_icon(&result.icon, cfg), title_column(result, cfg)]
|
||||
.spacing(style::CONTENT_SPACING)
|
||||
.align_y(iced::Center),
|
||||
row![
|
||||
result_icon(&result.icon, cfg),
|
||||
title_column(result, is_selected, cfg)
|
||||
]
|
||||
.spacing(style::CONTENT_SPACING)
|
||||
.align_y(iced::Center),
|
||||
)
|
||||
.width(Length::Fill)
|
||||
.padding(style::ROW_PADDING)
|
||||
@@ -138,17 +141,35 @@ fn result_icon<'a>(icon_path: &'a Option<Arc<str>>, cfg: &AppearanceCfg) -> Elem
|
||||
}
|
||||
}
|
||||
|
||||
fn title_column<'a>(result: &'a SearchResult, cfg: &AppearanceCfg) -> Element<'a, Message> {
|
||||
fn title_column<'a>(
|
||||
result: &'a SearchResult,
|
||||
is_selected: bool,
|
||||
cfg: &AppearanceCfg,
|
||||
) -> Element<'a, Message> {
|
||||
let title_color = if is_selected {
|
||||
style::rgba(&cfg.selected_text_rgba)
|
||||
} else {
|
||||
style::rgba(&cfg.text_rgba)
|
||||
};
|
||||
let desc_color = if is_selected {
|
||||
style::rgba(&cfg.selected_description_rgba)
|
||||
} else {
|
||||
style::rgba(&cfg.description_rgba)
|
||||
};
|
||||
|
||||
if let Some(desc) = &result.description {
|
||||
column![
|
||||
text(result.title.as_str()).size(cfg.title_size),
|
||||
text(desc.as_ref())
|
||||
.size(cfg.desc_size)
|
||||
.color(style::rgba(&cfg.description_rgba)),
|
||||
text(result.title.as_str())
|
||||
.size(cfg.title_size)
|
||||
.color(title_color),
|
||||
text(desc.as_ref()).size(cfg.desc_size).color(desc_color),
|
||||
]
|
||||
.into()
|
||||
} else {
|
||||
text(result.title.as_str()).size(cfg.title_size).into()
|
||||
text(result.title.as_str())
|
||||
.size(cfg.title_size)
|
||||
.color(title_color)
|
||||
.into()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "k-launcher"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
default-run = "k-launcher"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "plugin-apps"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "plugin-calc"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "plugin-cmd"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "plugin-files"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "plugin-url"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
Reference in New Issue
Block a user