ui: add wallet icon and sidebar border
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user