From 0d0eba83b9e5b566ce8322983272c17f8117d0b5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Dec 2024 04:03:38 +0200 Subject: [PATCH] remove extra members --- .../tab/item/page/content/text/gemini/reader.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index 0848ec13..c7bcf77d 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -33,10 +33,6 @@ pub const EXTERNAL_LINK_INDICATOR: &str = "⇖"; pub const LIST_ITEM: &str = "•"; pub const NEW_LINE: &str = "\n"; -// @TODO use accent colors in adw 1.6 / ubuntu 24.10+ -const LINK_COLOR: ((f32, f32, f32, f32), (f32, f32, f32, f32)) = - ((0.2, 0.5, 0.9, 1.0), (0.2, 0.5, 0.9, 0.9)); - pub struct Reader { pub title: Option, pub widget: Rc, @@ -63,7 +59,8 @@ impl Reader { let mut multiline = None; // Init colors - let link_color = (rgba(LINK_COLOR.0), rgba(LINK_COLOR.1)); + // @TODO use accent colors in adw 1.6 / ubuntu 24.10+ + let link_color = (RGBA::new(0.2, 0.5, 0.9, 1.0), RGBA::new(0.2, 0.5, 0.9, 0.9)); // Init syntect highlight features let syntax = Syntax::new(); @@ -451,10 +448,3 @@ impl Reader { Ok(Self { title, widget }) } } - -// Private helpers - -/// Create new [RGBA](https://docs.gtk.org/gdk4/struct.RGBA.html) from tuple -fn rgba((r, g, b, a): (f32, f32, f32, f32)) -> RGBA { - RGBA::new(r, g, b, a) -}