ui: add wallet icon and sidebar border

This commit is contained in:
2026-11-11 09:57:42 +07:00
parent 6fc7732128
commit 4166b30319
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -2050,7 +2050,7 @@ impl Render for ChatPanel {
.when(cfg!(not(target_arch = "wasm32")), |this| { .when(cfg!(not(target_arch = "wasm32")), |this| {
this.child( this.child(
Button::new("nutzap") Button::new("nutzap")
.icon(gpui_kit::assets::IconName::Coins) .icon(IconName::Wallet)
.tooltip("Send eCash") .tooltip("Send eCash")
.disabled(dictating) .disabled(dictating)
.ghost() .ghost()
+2
View File
@@ -33,6 +33,7 @@ pub enum IconName {
Unlock, Unlock,
Upload, Upload,
Warning, Warning,
Wallet,
} }
impl IconNamed for IconName { impl IconNamed for IconName {
@@ -67,6 +68,7 @@ impl IconNamed for IconName {
Self::Unlock => "icons/unlock.svg", Self::Unlock => "icons/unlock.svg",
Self::Upload => "icons/upload.svg", Self::Upload => "icons/upload.svg",
Self::Warning => "icons/warning.svg", Self::Warning => "icons/warning.svg",
Self::Wallet => "icons/wallet.svg",
} }
.into() .into()
} }
+2
View File
@@ -404,6 +404,8 @@ impl Render for Sidebar {
.size_full() .size_full()
.relative() .relative()
.justify_between() .justify_between()
.border_r_1()
.border_color(cx.theme().sidebar_border)
.bg(cx.theme().sidebar) .bg(cx.theme().sidebar)
.text_color(cx.theme().sidebar_foreground) .text_color(cx.theme().sidebar_foreground)
.child( .child(