Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
use crate::features::FeatureFlag;
|
||||
|
||||
use settings::{
|
||||
macros::define_settings_group, RespectUserSyncSetting, Setting, SupportedPlatforms, SyncToCloud,
|
||||
};
|
||||
use warpui::{AppContext, SingletonEntity};
|
||||
|
||||
define_settings_group!(LigatureSettings, settings: [
|
||||
ligature_rendering_enabled: LigatureRenderingEnabled {
|
||||
type: bool,
|
||||
default: false,
|
||||
supported_platforms: SupportedPlatforms::ALL,
|
||||
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
|
||||
private: false,
|
||||
toml_path: "appearance.text.ligature_rendering_enabled",
|
||||
description: "Whether to render font ligatures in the terminal.",
|
||||
},
|
||||
]);
|
||||
|
||||
pub fn should_use_ligature_rendering(app: &AppContext) -> bool {
|
||||
let enabled_in_settings = *LigatureSettings::as_ref(app)
|
||||
.ligature_rendering_enabled
|
||||
.value();
|
||||
|
||||
enabled_in_settings && FeatureFlag::Ligatures.is_enabled()
|
||||
}
|
||||
Reference in New Issue
Block a user