replace features with adw 1.5 (support ubuntu 24.04 lts)

This commit is contained in:
yggverse 2024-12-04 05:01:55 +02:00
parent 51431ca635
commit 297e54b2c1
5 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1,8 @@
use adw::{Spinner, StatusPage};
use adw::StatusPage;
use gtk::{
glib::{timeout_add_local, ControlFlow},
prelude::WidgetExt,
Spinner, // use adw::Spinner; @TODO adw 1.6 / ubuntu 24.10+
};
use std::time::Duration;

View file

@ -11,7 +11,6 @@ use widget::Widget;
use crate::app::browser::window::{
action::Position, tab::item::Action as TabAction, Action as WindowAction,
};
use adw::StyleManager;
use gemtext::line::{
code::{Inline, Multiline},
header::{Header, Level},
@ -224,7 +223,8 @@ impl Reader {
// Create new tag for new link
let a = TextTag::builder()
.foreground_rgba(&StyleManager::default().accent_color_rgba()) // @TODO
.foreground("#3584e4")
// .foreground_rgba(&adw::StyleManager::default().accent_color_rgba()) @TODO adw 1.6 / ubuntu 24.10+
.sentence(true)
.wrap_mode(WrapMode::Word)
.build();