1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

color: hide picker instantly when spawning hyprpicker

fixes #575
This commit is contained in:
bbedward
2025-10-28 10:19:56 -04:00
parent d7efd1b285
commit ee0e3aece9
3 changed files with 36 additions and 2 deletions

View File

@@ -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)

View File

@@ -1,3 +1,7 @@
[templates.dmskitty]
input_path = './matugen/templates/kitty.conf'
output_path = '~/.config/kitty/dank-theme.conf'
[templates.dmskittytabs]
input_path = './matugen/templates/kitty-tabs.conf'
output_path = '~/.config/kitty/dank-tabs.conf'

View File

@@ -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}]"