Update outline panel representation when a theme is changed (#19747)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-10-25 22:04:02 +03:00 committed by GitHub
parent c9db1b9a7b
commit 6de5ace116
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 38 additions and 26 deletions

View file

@ -86,7 +86,7 @@ impl From<UiDensity> for String {
}
/// Customizable settings for the UI and theme system.
#[derive(Clone)]
#[derive(Clone, PartialEq)]
pub struct ThemeSettings {
/// The UI font size. Determines the size of text in the UI,
/// as well as the size of a [gpui::Rems] unit.
@ -213,7 +213,7 @@ pub(crate) struct AdjustedUiFontSize(Pixels);
impl Global for AdjustedUiFontSize {}
/// Represents the selection of a theme, which can be either static or dynamic.
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
#[serde(untagged)]
pub enum ThemeSelection {
/// A static theme selection, represented by a single theme name.