chore: improve clarity about public group
This commit is contained in:
@@ -660,10 +660,15 @@ impl PopupMenu {
|
|||||||
.border_color(cx.theme().border_faint)
|
.border_color(cx.theme().border_faint)
|
||||||
.disabled(true),
|
.disabled(true),
|
||||||
PopupMenuItem::Label(label) => this.disabled(true).cursor_default().child(
|
PopupMenuItem::Label(label) => this.disabled(true).cursor_default().child(
|
||||||
h_flex().cursor_default().items_center().gap_x_1().child(
|
h_flex()
|
||||||
|
.cursor_default()
|
||||||
|
.items_center()
|
||||||
|
.gap_x_1()
|
||||||
|
.h_6()
|
||||||
|
.child(
|
||||||
div()
|
div()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
.text_style(TextStyle::Callout)
|
.text_style(TextStyle::Footnote)
|
||||||
.font_semibold()
|
.font_semibold()
|
||||||
.text_color(cx.theme().text_muted)
|
.text_color(cx.theme().text_muted)
|
||||||
.child(label.clone()),
|
.child(label.clone()),
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ pub fn open(window: &mut Window, cx: &mut App) {
|
|||||||
|
|
||||||
window.open_dialog(cx, move |this, _window, _cx| {
|
window.open_dialog(cx, move |this, _window, _cx| {
|
||||||
this.width(px(380.))
|
this.width(px(380.))
|
||||||
.title("Join Group")
|
.title("Join Public Group")
|
||||||
.on_ok({
|
.on_ok({
|
||||||
let join = join.clone();
|
let join = join.clone();
|
||||||
move |event, window, cx| join(event, window, cx)
|
move |event, window, cx| join(event, window, cx)
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ impl GreeterPanel {
|
|||||||
.small()
|
.small()
|
||||||
.text_color(cx.theme().text_faint),
|
.text_color(cx.theme().text_faint),
|
||||||
)
|
)
|
||||||
.label("Browse Group")
|
.label("Browse Public Groups")
|
||||||
.text_style(TextStyle::Callout)
|
.text_style(TextStyle::Callout)
|
||||||
.on_click(cx.listener(|this, _, window, cx| {
|
.on_click(cx.listener(|this, _, window, cx| {
|
||||||
let panel = browse::init(this.dock.clone(), window, cx);
|
let panel = browse::init(this.dock.clone(), window, cx);
|
||||||
|
|||||||
@@ -84,12 +84,17 @@ impl Sidebar {
|
|||||||
.ghost()
|
.ghost()
|
||||||
.small()
|
.small()
|
||||||
.dropdown_menu(|menu, _window, _cx| {
|
.dropdown_menu(|menu, _window, _cx| {
|
||||||
menu.menu_with_icon(
|
menu.label("Public Group")
|
||||||
|
.menu_with_icon(
|
||||||
"New Group",
|
"New Group",
|
||||||
IconName::Group,
|
IconName::Group,
|
||||||
Box::new(Command::NewGroup),
|
Box::new(Command::NewGroup),
|
||||||
)
|
)
|
||||||
.menu_with_icon("Join Group", IconName::Door, Box::new(Command::JoinGroup))
|
.menu_with_icon(
|
||||||
|
"Join Group",
|
||||||
|
IconName::Door,
|
||||||
|
Box::new(Command::JoinGroup),
|
||||||
|
)
|
||||||
.separator()
|
.separator()
|
||||||
.menu_with_icon(
|
.menu_with_icon(
|
||||||
"New Chat",
|
"New Chat",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ impl ListSection {
|
|||||||
pub(super) fn label(self) -> &'static str {
|
pub(super) fn label(self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Self::Pins => "Pinned",
|
Self::Pins => "Pinned",
|
||||||
Self::Groups => "Groups",
|
Self::Groups => "Public Groups",
|
||||||
Self::Chats => "Chats",
|
Self::Chats => "Chats",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,10 +93,10 @@ impl Sidebar {
|
|||||||
|
|
||||||
Nav::new(label)
|
Nav::new(label)
|
||||||
.label(label)
|
.label(label)
|
||||||
.suffix(Icon::new(icon).small().text_color(cx.theme().text_faint))
|
.suffix(Icon::new(icon).small().text_color(cx.theme().text_muted))
|
||||||
.text_style(TextStyle::Caption)
|
.text_style(TextStyle::Caption)
|
||||||
.font_semibold()
|
.font_semibold()
|
||||||
.text_color(cx.theme().text_faint)
|
.text_color(cx.theme().text_muted)
|
||||||
.on_click(cx.listener(move |this, _event, _window, cx| {
|
.on_click(cx.listener(move |this, _event, _window, cx| {
|
||||||
match section {
|
match section {
|
||||||
ListSection::Pins => this.pins_open = !this.pins_open,
|
ListSection::Pins => this.pins_open = !this.pins_open,
|
||||||
|
|||||||
Reference in New Issue
Block a user