From ee0e3aece93963b2dad23e60c8f69e12c2590547 Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 28 Oct 2025 10:19:56 -0400 Subject: [PATCH] color: hide picker instantly when spawning hyprpicker fixes #575 --- Modals/DankColorPickerModal.qml | 8 +++++++- matugen/configs/kitty.toml | 6 +++++- matugen/templates/kitty-tabs.conf | 24 ++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 matugen/templates/kitty-tabs.conf diff --git a/Modals/DankColorPickerModal.qml b/Modals/DankColorPickerModal.qml index 13833541..ce9192cd 100644 --- a/Modals/DankColorPickerModal.qml +++ b/Modals/DankColorPickerModal.qml @@ -45,6 +45,12 @@ DankModal { close() } + function hideInstant() { + onColorSelectedCallback = null + shouldBeVisible = false + visible = false + } + onColorSelected: (color) => { if (onColorSelectedCallback) { onColorSelectedCallback(color) @@ -78,7 +84,7 @@ DankModal { } function pickColorFromScreen() { - hide() + hideInstant() Proc.runCommand("hyprpicker", ["hyprpicker", "--format=hex"], (output, errorCode) => { if (errorCode !== 0) { console.warn("hyprpicker exited with code:", errorCode) diff --git a/matugen/configs/kitty.toml b/matugen/configs/kitty.toml index cd0b0055..8ef54ced 100644 --- a/matugen/configs/kitty.toml +++ b/matugen/configs/kitty.toml @@ -1,3 +1,7 @@ [templates.dmskitty] input_path = './matugen/templates/kitty.conf' -output_path = '~/.config/kitty/dank-theme.conf' \ No newline at end of file +output_path = '~/.config/kitty/dank-theme.conf' + +[templates.dmskittytabs] +input_path = './matugen/templates/kitty-tabs.conf' +output_path = '~/.config/kitty/dank-tabs.conf' \ No newline at end of file diff --git a/matugen/templates/kitty-tabs.conf b/matugen/templates/kitty-tabs.conf new file mode 100644 index 00000000..5c7af2b0 --- /dev/null +++ b/matugen/templates/kitty-tabs.conf @@ -0,0 +1,24 @@ +tab_bar_edge top +tab_bar_style powerline +tab_powerline_style slanted +tab_bar_align left +tab_bar_min_tabs 2 +tab_bar_margin_width 0.0 +tab_bar_margin_height 2.5 1.5 +tab_bar_margin_color {{colors.surface.default.hex}} + +tab_bar_background {{colors.surface.default.hex}} + +active_tab_foreground {{colors.on_primary_container.default.hex}} +active_tab_background {{colors.primary_container.default.hex}} +active_tab_font_style bold + +inactive_tab_foreground {{colors.on_surface_variant.default.hex}} +inactive_tab_background {{colors.surface_container.default.hex}} +inactive_tab_font_style normal + +tab_activity_symbol " ● " +tab_numbers_style 1 + +tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:30]}{title[30:] and '…'} [{index}]" +active_tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:30]}{title[30:] and '…'} [{index}]" \ No newline at end of file