From d06784958d73159b5e4abafe5114804662114ed7 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 9 Jul 2026 22:15:53 -0400 Subject: move ubersicht modules in tree --- .../simple-bar-source/lib/styles/theme.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js') diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js new file mode 100755 index 0000000..51985a5 --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js @@ -0,0 +1,21 @@ +import * as Themes from "./themes"; +import * as Pywal from "./pywal/pywal-colors"; + +const WITH_PYWAL = false; + +const overrideColors = WITH_PYWAL ? Pywal.colors : {}; + +/** + * Generates color themes by merging the specified themes with override colors. + * + * @param {Object} themes - An object containing the light and dark theme names. + * @param {string} themes.lightTheme - The name of the light theme. + * @param {string} themes.darkTheme - The name of the dark theme. + * @returns {Object} An object containing the light and dark color themes. + */ +export function colors(themes) { + return { + light: { ...Themes.collection[themes.lightTheme], ...overrideColors }, + dark: { ...Themes.collection[themes.darkTheme], ...overrideColors }, + }; +} -- cgit v1.3