Rename ListEntry to ListItem (#3371)

This PR renames the `ListEntry` component to `ListItem` to better
reflect its intent.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2023-11-20 16:13:06 -05:00
committed by GitHub
parent 4f4ef4a357
commit 652e3b0bb6
5 changed files with 80 additions and 83 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
use std::sync::Arc;
use theme2::ActiveTheme;
use ui::{
h_stack, menu_handle, ContextMenu, IconButton, InteractionState, Label, ListEntry, Tooltip,
h_stack, menu_handle, ContextMenu, IconButton, InteractionState, Label, ListItem, Tooltip,
};
pub enum PanelEvent {
@@ -719,7 +719,7 @@ impl Render<Self> for PanelButtons {
{
let panel = panel.clone();
menu = menu.entry(
ListEntry::new(
ListItem::new(
SharedString::from(format!("dock-{position:?}")),
Label::new(format!("Dock {}", position.to_label())),
),