chore: audit components
This commit is contained in:
@@ -14,6 +14,8 @@ use objc2_foundation::{
|
||||
};
|
||||
use std::ptr::NonNull;
|
||||
|
||||
use super::narrow_component;
|
||||
|
||||
use super::ThemeSource;
|
||||
use crate::ThemeVariant;
|
||||
use crate::system::{AccessibilityPreferences, PartialPalette, SourceKind, SystemTheme};
|
||||
@@ -46,10 +48,10 @@ impl MacosSource {
|
||||
let converted = color.colorUsingColorSpace(&srgb)?;
|
||||
|
||||
Some(gpui::Hsla::from(gpui::Rgba {
|
||||
r: converted.redComponent() as f32,
|
||||
g: converted.greenComponent() as f32,
|
||||
b: converted.blueComponent() as f32,
|
||||
a: converted.alphaComponent() as f32,
|
||||
r: narrow_component(converted.redComponent()),
|
||||
g: narrow_component(converted.greenComponent()),
|
||||
b: narrow_component(converted.blueComponent()),
|
||||
a: narrow_component(converted.alphaComponent()),
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user