mirror of https://github.com/YGGverse/Yoda.git
yggverse
1 month ago
3 changed files with 22 additions and 39 deletions
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
use adw::StyleManager; |
||||
use gtk::{TextTag, WrapMode}; |
||||
|
||||
pub struct Link { |
||||
tag: TextTag, |
||||
} |
||||
|
||||
impl Link { |
||||
// Construct
|
||||
pub fn new() -> Self { |
||||
Self { |
||||
tag: TextTag::builder() |
||||
.foreground_rgba(&StyleManager::default().accent_color_rgba()) // @TODO
|
||||
.sentence(true) |
||||
.wrap_mode(WrapMode::Word) |
||||
.build(), |
||||
} |
||||
} |
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &TextTag { |
||||
&self.tag |
||||
} |
||||
} |
Loading…
Reference in new issue