refactor: rename to chain:studio-plugin WIT + provider chain
Tracks the platform's fai->chain rename: provider chain, WIT ABI chain:studio-plugin / chain:platform (binding paths/accessors), SDK pin. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
5819e5e4b1
commit
4c182bb23f
3 changed files with 7 additions and 7 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
use fai_plugin_sdk::{bindings, export_plugin};
|
||||
|
||||
type ColorScheme = bindings::fai::studio_plugin::plugin_types::ColorScheme;
|
||||
type PluginError = bindings::fai::studio_plugin::plugin_types::PluginError;
|
||||
type RenderedOutput = bindings::fai::studio_plugin::plugin_types::RenderedOutput;
|
||||
type ColorScheme = bindings::chain::studio_plugin::plugin_types::ColorScheme;
|
||||
type PluginError = bindings::chain::studio_plugin::plugin_types::PluginError;
|
||||
type RenderedOutput = bindings::chain::studio_plugin::plugin_types::RenderedOutput;
|
||||
|
||||
const GLASS_APPLE_LIGHT: [u32; 14] = [
|
||||
0xFF007AFF, // primary — Apple system blue
|
||||
|
|
@ -51,7 +51,7 @@ const GLASS_APPLE_DARK: [u32; 14] = [
|
|||
|
||||
struct GlassApplePlugin;
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::theme::Guest for GlassApplePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::theme::Guest for GlassApplePlugin {
|
||||
fn theme_for(brightness: String) -> Result<ColorScheme, PluginError> {
|
||||
let tokens = match brightness.as_str() {
|
||||
"light" => GLASS_APPLE_LIGHT.to_vec(),
|
||||
|
|
@ -67,7 +67,7 @@ impl bindings::exports::fai::studio_plugin::theme::Guest for GlassApplePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::translate::Guest for GlassApplePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::translate::Guest for GlassApplePlugin {
|
||||
fn translate(
|
||||
_text: String,
|
||||
_from_locale: String,
|
||||
|
|
@ -79,7 +79,7 @@ impl bindings::exports::fai::studio_plugin::translate::Guest for GlassApplePlugi
|
|||
}
|
||||
}
|
||||
|
||||
impl bindings::exports::fai::studio_plugin::output_view::Guest for GlassApplePlugin {
|
||||
impl bindings::exports::chain::studio_plugin::output_view::Guest for GlassApplePlugin {
|
||||
fn render(
|
||||
_mime_type: String,
|
||||
_data: Vec<u8>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue