From f0bab936ed89b152675d4bc0f123f666bd909616 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 10 Apr 2025 19:28:13 +1000 Subject: config: allow disabling headlines sidebar module --- src/modules/sidebar/modules/headlines.tsx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'src/modules/sidebar') diff --git a/src/modules/sidebar/modules/headlines.tsx b/src/modules/sidebar/modules/headlines.tsx index 3660f18..9515b28 100644 --- a/src/modules/sidebar/modules/headlines.tsx +++ b/src/modules/sidebar/modules/headlines.tsx @@ -5,6 +5,7 @@ import { capitalize } from "@/utils/strings"; import { setupCustomTooltip } from "@/utils/widgets"; import { bind, execAsync, Variable } from "astal"; import { Gtk } from "astal/gtk3"; +import { sidebar } from "config"; const fixGoogleNews = (colours: IPalette, title: string, desc: string) => { // Add separator, bold and split at domain (domain is at the end of each headline) @@ -135,17 +136,30 @@ const List = () => ( ); -const NoNews = () => ( +const NoNews = ({ disabled }: { disabled?: boolean }) => ( ); -export default ({ monitor }: { monitor: Monitor }) => ( - +const HeadlinesDisabled = () => ( + <> + + +