migrate icons to gpui-native-kit

This commit is contained in:
2026-11-10 04:11:42 +07:00
parent 8e8ceaf2db
commit 48d16bb33e
35 changed files with 224 additions and 114 deletions
+1
View File
@@ -9,6 +9,7 @@ state = { path = "../state" }
speech = { path = "../speech" }
ui = { path = "../ui" }
gpui-kit = { workspace = true, features = ["speech"] }
gpui-native-kit.workspace = true
common = { path = "../common" }
person = { path = "../person" }
chat = { path = "../chat" }
+11 -6
View File
@@ -23,7 +23,8 @@ use gpui_kit::component::notification::Notification;
use gpui_kit::component::scroll::Scrollbar;
use gpui_kit::component::speech::{SpeechButton, SpeechEvent, SpeechState, SpeechWaveform};
use gpui_kit::component::tooltip::Tooltip;
use gpui_kit::component::{ActiveTheme, Disableable, Icon, Sizable, WindowExt, h_flex, v_flex};
use gpui_kit::component::{ActiveTheme, Disableable, Sizable, WindowExt, h_flex, v_flex};
use gpui_native_kit::icons::Icon;
use itertools::Itertools;
use nostr_sdk::prelude::*;
use person::{Directory, Person};
@@ -1126,7 +1127,7 @@ impl ChatPanel {
.rounded_full()
.bg(cx.theme().warning.opacity(0.15))
.text_color(cx.theme().warning)
.child(Icon::new(IconName::Warning).small()),
.child(Icon::named(IconName::Warning).size(ui::small_icon_size(cx))),
)
.child(
div()
@@ -1575,7 +1576,7 @@ impl ChatPanel {
.justify_center()
.rounded_full()
.bg(red())
.child(Icon::new(IconName::Close).size_2().text_color(white())),
.child(Icon::named(IconName::Close).size(px(8.)).color(white())),
)
.on_click({
let url = url.clone();
@@ -1655,7 +1656,7 @@ impl ChatPanel {
.border_1()
.border_color(cx.theme().border)
.rounded(cx.theme().radius)
.child(Icon::new(IconName::Lock).text_color(cx.theme().primary))
.child(Icon::named(IconName::Lock).color(cx.theme().primary))
.child(
v_flex()
.min_w_0()
@@ -1728,7 +1729,11 @@ impl ChatPanel {
.border_1()
.border_color(cx.theme().border)
.bg(gpui::green())
.child(Icon::new(IconName::Lock).size_2().text_color(gpui::white())),
.child(
Icon::named(IconName::Lock)
.size(px(8.))
.color(gpui::white()),
),
)
.on_click({
let url = file.url.clone();
@@ -2050,7 +2055,7 @@ impl Render for ChatPanel {
.when(cfg!(not(target_arch = "wasm32")), |this| {
this.child(
Button::new("nutzap")
.icon(gpui_kit::assets::IconName::Coins)
.icon(ui::IconName::Coins)
.tooltip("Send eCash")
.disabled(dictating)
.ghost()