mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
deactivate unstable css provider implementation
This commit is contained in:
parent
814642ff2f
commit
97d2600ffd
1 changed files with 10 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ use gtk::{
|
||||||
|
|
||||||
pub struct Reader {
|
pub struct Reader {
|
||||||
title: Option<GString>,
|
title: Option<GString>,
|
||||||
css: CssProvider,
|
// css: CssProvider, @TODO
|
||||||
widget: Label,
|
widget: Label,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -52,11 +52,12 @@ impl Reader {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init CSS
|
// Init CSS
|
||||||
|
/* @TODO Theme parser error: <broken file>
|
||||||
let css = CssProvider::new();
|
let css = CssProvider::new();
|
||||||
|
|
||||||
css.load_from_path(
|
css.load_from_path(
|
||||||
"src/browser/main/tab/page/content/text/gemini/reader/default.css", // @TODO
|
"src/browser/main/tab/page/content/text/gemini/reader/default.css", // @TODO
|
||||||
);
|
); */
|
||||||
|
|
||||||
// Init widget
|
// Init widget
|
||||||
let widget = Label::builder()
|
let widget = Label::builder()
|
||||||
|
|
@ -74,9 +75,10 @@ impl Reader {
|
||||||
.label(markup)
|
.label(markup)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
/* @TODO
|
||||||
widget
|
widget
|
||||||
.style_context()
|
.style_context()
|
||||||
.add_provider(&css, STYLE_PROVIDER_PRIORITY_APPLICATION);
|
.add_provider(&css, STYLE_PROVIDER_PRIORITY_APPLICATION); */
|
||||||
|
|
||||||
// Connect actions
|
// Connect actions
|
||||||
widget.connect_activate_link(|label, href| {
|
widget.connect_activate_link(|label, href| {
|
||||||
|
|
@ -102,7 +104,11 @@ impl Reader {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Self { title, css, widget }
|
Self {
|
||||||
|
title,
|
||||||
|
// css, @TODO
|
||||||
|
widget,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue