Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+4 -3
View File
@@ -1,8 +1,8 @@
use settings::Setting as _;
use galaxyui::{
fonts::FamilyId, AddSingletonModel, AppContext, AssetProvider, Entity, ModelContext,
SingletonEntity,
};
use settings::Setting as _;
#[cfg(target_os = "macos")]
mod macos_app_icon {
@@ -11,9 +11,9 @@ mod macos_app_icon {
appkit::NSApp,
base::{id, nil},
};
pub use objc::{class, msg_send, sel, sel_impl};
pub use galaxy_core::channel::{Channel, ChannelState};
pub use galaxyui::platform::mac::{make_nsstring, AutoreleasePoolGuard};
pub use objc::{class, msg_send, sel, sel_impl};
pub use crate::settings::app_icon::{AppIcon, AppIconSettings, AppIconSettingsChangedEvent};
}
@@ -378,7 +378,8 @@ fn get_or_load_font_family(font_name: &str, ctx: &mut AppContext) -> Option<Fami
galaxyui::fonts::Cache::handle(ctx).update(ctx, |font_cache, _| {
match font_cache.get_or_load_system_font(font_name) {
Ok(family) => {
let font_id = font_cache.select_font(family, galaxyui::fonts::Properties::default());
let font_id =
font_cache.select_font(family, galaxyui::fonts::Properties::default());
// Validate that the font contains the `m` glyph since this is assumed in
// various parts of the code. We already do this when surfacing fonts in the font