mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 10:20:51 +00:00
Add meta_text
to style metaline
This commit is contained in:
parent
c9e670397f
commit
beb91fa094
3 changed files with 9 additions and 1 deletions
|
@ -257,7 +257,7 @@ impl NotificationPanel {
|
|||
} else {
|
||||
"You declined"
|
||||
},
|
||||
style.read_text.text.clone(),
|
||||
style.meta_text.text.clone(),
|
||||
)
|
||||
.flex_float()
|
||||
.into_any(),
|
||||
|
|
|
@ -674,6 +674,7 @@ pub struct NotificationPanel {
|
|||
pub icon_button: Interactive<IconButton>,
|
||||
pub unread_text: ContainedText,
|
||||
pub read_text: ContainedText,
|
||||
pub meta_text: ContainedText,
|
||||
pub timestamp: ContainedText,
|
||||
pub button: Interactive<ContainedText>,
|
||||
}
|
||||
|
|
|
@ -44,6 +44,13 @@ export default function (): any {
|
|||
...notification_text,
|
||||
color: notification_read_text_color,
|
||||
},
|
||||
meta_text: {
|
||||
padding: { top: 4, bottom: 4, right: 4 },
|
||||
...text(layer, "sans", "base"),
|
||||
color: with_opacity(
|
||||
theme.middle.base.default.foreground,
|
||||
0.6)
|
||||
},
|
||||
unread_text: notification_text,
|
||||
button: text_button({
|
||||
variant: "ghost",
|
||||
|
|
Loading…
Reference in a new issue