Rename 'toggle theme mode' to 'cycle theme mode'
This commit is contained in:
parent
4d46f74470
commit
427f799018
3 changed files with 7 additions and 7 deletions
|
@ -40,9 +40,9 @@ pub fn init(cx: &mut App) {
|
|||
toggle_icon_theme_selector(workspace, &action, window, cx);
|
||||
});
|
||||
});
|
||||
cx.on_action(|_: &zed_actions::theme_selector::ToggleMode, cx| {
|
||||
cx.on_action(|_: &zed_actions::theme_selector::CycleMode, cx| {
|
||||
with_active_or_new_workspace(cx, |workspace, window, cx| {
|
||||
toggle_theme_mode(workspace, window, cx);
|
||||
cycle_theme_mode(workspace, window, cx);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ fn toggle_icon_theme_selector(
|
|||
});
|
||||
}
|
||||
|
||||
fn toggle_theme_mode(workspace: &mut Workspace, _window: &mut Window, cx: &mut Context<Workspace>) {
|
||||
fn cycle_theme_mode(workspace: &mut Workspace, _window: &mut Window, cx: &mut Context<Workspace>) {
|
||||
let current_settings = ThemeSettings::get_global(cx);
|
||||
let current_selection = current_settings.theme_selection.as_ref();
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ pub fn app_menus() -> Vec<Menu> {
|
|||
zed_actions::theme_selector::Toggle::default(),
|
||||
),
|
||||
MenuItem::action(
|
||||
"Toggle Theme Mode",
|
||||
zed_actions::theme_selector::ToggleMode,
|
||||
"Cycle Theme Mode",
|
||||
zed_actions::theme_selector::CycleMode,
|
||||
),
|
||||
],
|
||||
}),
|
||||
|
|
|
@ -244,11 +244,11 @@ pub mod theme_selector {
|
|||
pub themes_filter: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
/// Toggles between light, dark, and system theme modes.
|
||||
/// Cycles between light, dark, and system theme modes.
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = theme_selector)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ToggleMode;
|
||||
pub struct CycleMode;
|
||||
}
|
||||
|
||||
pub mod icon_theme_selector {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue