fix: display media total length on bar and add a time label (#435)

* fix: display media total length on bar

* fix: add option to display custom nomedia text

* feat: add dedicated label too

* fix: media add more window names for playables

* fix: add option to control display time

* Consolidate code and make tooltip timestamp for media bar opt-in.

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Rubin Bhandari
2024-11-08 15:00:06 +05:45
committed by GitHub
parent 1c0b49fce8
commit 9ae59034fa
53 changed files with 224 additions and 72 deletions

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#414559",
"theme.bar.menus.menu.network.switch.puck": "#51576d",
"theme.bar.buttons.systray.customIcon": "#c6d0f5",
"theme.bar.border.color": "#babbf1"
"theme.bar.border.color": "#babbf1",
"theme.bar.menus.menu.media.timestamp": "#c6d0f5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#414559",
"theme.bar.menus.menu.network.switch.puck": "#51576d",
"theme.bar.buttons.systray.customIcon": "#c6d0f5",
"theme.bar.border.color": "#babbf1"
"theme.bar.border.color": "#babbf1",
"theme.bar.menus.menu.media.timestamp": "#c6d0f5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#414559",
"theme.bar.menus.menu.network.switch.enabled": "#ca9ee6",
"theme.bar.buttons.systray.customIcon": "#c6d0f5",
"theme.bar.border.color": "#babbf1"
"theme.bar.border.color": "#babbf1",
"theme.bar.menus.menu.media.timestamp": "#c6d0f5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#ccd0da",
"theme.bar.menus.menu.network.switch.puck": "#bcc0cc",
"theme.bar.buttons.systray.customIcon": "#4c4f69",
"theme.bar.border.color": "#7287fd"
"theme.bar.border.color": "#7287fd",
"theme.bar.menus.menu.media.timestamp": "#4c4f69"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#ccd0da",
"theme.bar.menus.menu.network.switch.puck": "#bcc0cc",
"theme.bar.buttons.systray.customIcon": "#4c4f69",
"theme.bar.border.color": "#7287fd"
"theme.bar.border.color": "#7287fd",
"theme.bar.menus.menu.media.timestamp": "#4c4f69"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#ccd0da",
"theme.bar.menus.menu.network.switch.enabled": "#8839ef",
"theme.bar.buttons.systray.customIcon": "#4c4f69",
"theme.bar.border.color": "#7287fd"
"theme.bar.border.color": "#7287fd",
"theme.bar.menus.menu.media.timestamp": "#4c4f69"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#363a4f",
"theme.bar.menus.menu.network.switch.puck": "#494d64",
"theme.bar.buttons.systray.customIcon": "#cad3f5",
"theme.bar.border.color": "#b7bdf8"
"theme.bar.border.color": "#b7bdf8",
"theme.bar.menus.menu.media.timestamp": "#cad3f5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#363a4f",
"theme.bar.menus.menu.network.switch.puck": "#494d64",
"theme.bar.buttons.systray.customIcon": "#cad3f5",
"theme.bar.border.color": "#b7bdf8"
"theme.bar.border.color": "#b7bdf8",
"theme.bar.menus.menu.media.timestamp": "#cad3f5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#363a4f",
"theme.bar.menus.menu.network.switch.enabled": "#c6a0f6",
"theme.bar.buttons.systray.customIcon": "#cad3f5",
"theme.bar.border.color": "#b7bdf8"
"theme.bar.border.color": "#b7bdf8",
"theme.bar.menus.menu.media.timestamp": "#cad3f5"
}

View File

@@ -179,6 +179,7 @@
"theme.bar.menus.menu.media.card.color": "#1e1e2e",
"theme.bar.menus.menu.media.background.color": "#11111b",
"theme.bar.menus.menu.media.album": "#f5c2e8",
"theme.bar.menus.menu.media.timestamp": "#cdd6f4",
"theme.bar.menus.menu.media.artist": "#94e2d6",
"theme.bar.menus.menu.media.song": "#b4beff",
"theme.bar.menus.tooltip.text": "#cdd6f4",

View File

@@ -171,6 +171,7 @@
"theme.bar.menus.menu.media.album": "#f5c2e8",
"theme.bar.menus.menu.media.artist": "#94e2d6",
"theme.bar.menus.menu.media.song": "#b4beff",
"theme.bar.menus.menu.media.timestamp": "#cdd6f4",
"theme.bar.menus.tooltip.text": "#cdd6f4",
"theme.bar.menus.tooltip.background": "#11111b",
"theme.bar.menus.dropdownmenu.divider": "#1e1e2e",
@@ -344,4 +345,3 @@
"theme.bar.menus.menu.network.switch.puck": "#454759",
"theme.bar.border.color": "#b4befe"
}

View File

@@ -182,6 +182,7 @@
"theme.bar.menus.menu.media.card.color": "#1e1e2e",
"theme.bar.menus.menu.media.background.color": "#11111b",
"theme.bar.menus.menu.media.album": "#f5c2e8",
"theme.bar.menus.menu.media.timestamp": "#cdd6f4",
"theme.bar.menus.menu.media.artist": "#94e2d6",
"theme.bar.menus.menu.media.song": "#b4beff",
"theme.bar.menus.tooltip.text": "#cdd6f4",

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2A2A2A",
"theme.bar.menus.menu.network.switch.puck": "#333333",
"theme.bar.buttons.systray.customIcon": "#d1d1d1",
"theme.bar.border.color": "#f7d04b"
"theme.bar.border.color": "#f7d04b",
"theme.bar.menus.menu.media.timestamp": "#FFD700"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2A2A2A",
"theme.bar.menus.menu.network.switch.puck": "#333333",
"theme.bar.buttons.systray.customIcon": "#d1d1d1",
"theme.bar.border.color": "#f7d04b"
"theme.bar.border.color": "#f7d04b",
"theme.bar.menus.menu.media.timestamp": "#FFD700"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2A2A2A",
"theme.bar.menus.menu.network.switch.enabled": "#FF69B4",
"theme.bar.buttons.systray.customIcon": "#d1d1d1",
"theme.bar.border.color": "#f7d04b"
"theme.bar.border.color": "#f7d04b",
"theme.bar.menus.menu.media.timestamp": "#FFD700"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#44475a",
"theme.bar.menus.menu.network.switch.puck": "#44475a",
"theme.bar.buttons.systray.customIcon": "#f8f8f2",
"theme.bar.border.color": "#bd93f9"
"theme.bar.border.color": "#bd93f9",
"theme.bar.menus.menu.media.timestamp": "#f8f8f2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#44475a",
"theme.bar.menus.menu.network.switch.puck": "#44475a",
"theme.bar.buttons.systray.customIcon": "#f8f8f2",
"theme.bar.border.color": "#bd93f9"
"theme.bar.border.color": "#bd93f9",
"theme.bar.menus.menu.media.timestamp": "#f8f8f2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#44475a",
"theme.bar.menus.menu.network.switch.enabled": "#bd93f9",
"theme.bar.buttons.systray.customIcon": "#f8f8f2",
"theme.bar.border.color": "#bd93f9"
"theme.bar.border.color": "#bd93f9",
"theme.bar.menus.menu.media.timestamp": "#f8f8f2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2f383e",
"theme.bar.menus.menu.network.switch.puck": "#454b53",
"theme.bar.buttons.systray.customIcon": "#d8caac",
"theme.bar.border.color": "#83c092"
"theme.bar.border.color": "#83c092",
"theme.bar.menus.menu.media.timestamp": "#d3c6aa"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2f383e",
"theme.bar.menus.menu.network.switch.puck": "#454b53",
"theme.bar.buttons.systray.customIcon": "#d8caac",
"theme.bar.border.color": "#83c092"
"theme.bar.border.color": "#83c092",
"theme.bar.menus.menu.media.timestamp": "#d3c6aa"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2f383e",
"theme.bar.menus.menu.network.switch.enabled": "#e69875",
"theme.bar.buttons.systray.customIcon": "#d8caac",
"theme.bar.border.color": "#83c092"
"theme.bar.border.color": "#83c092",
"theme.bar.menus.menu.media.timestamp": "#d3c6aa"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3c3836",
"theme.bar.menus.menu.network.switch.puck": "#504945",
"theme.bar.buttons.systray.customIcon": "#ebdbb2",
"theme.bar.border.color": "#83a598"
"theme.bar.border.color": "#83a598",
"theme.bar.menus.menu.media.timestamp": "#ebdbb2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3c3836",
"theme.bar.menus.menu.network.switch.puck": "#504945",
"theme.bar.buttons.systray.customIcon": "#ebdbb2",
"theme.bar.border.color": "#83a598"
"theme.bar.border.color": "#83a598",
"theme.bar.menus.menu.media.timestamp": "#ebdbb2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3c3836",
"theme.bar.menus.menu.network.switch.enabled": "#b16286",
"theme.bar.buttons.systray.customIcon": "#ebdbb2",
"theme.bar.border.color": "#83a598"
"theme.bar.border.color": "#83a598",
"theme.bar.menus.menu.media.timestamp": "#ebdbb2"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#444444",
"theme.bar.menus.menu.network.switch.puck": "#333333",
"theme.bar.buttons.systray.customIcon": "#FFFFFF",
"theme.bar.border.color": "#FFFFFF"
"theme.bar.border.color": "#FFFFFF",
"theme.bar.menus.menu.media.timestamp": "#FFFFFF"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#444444",
"theme.bar.menus.menu.network.switch.puck": "#333333",
"theme.bar.buttons.systray.customIcon": "#FFFFFF",
"theme.bar.border.color": "#FFFFFF"
"theme.bar.border.color": "#FFFFFF",
"theme.bar.menus.menu.media.timestamp": "#FFFFFF"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#444444",
"theme.bar.menus.menu.network.switch.enabled": "#FFFFFF",
"theme.bar.buttons.systray.customIcon": "#FFFFFF",
"theme.bar.border.color": "#FFFFFF"
"theme.bar.border.color": "#FFFFFF",
"theme.bar.menus.menu.media.timestamp": "#FFFFFF"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#434c53",
"theme.bar.menus.menu.network.switch.puck": "#434c53",
"theme.bar.buttons.systray.customIcon": "#d8dee9",
"theme.bar.border.color": "#88c0d0"
"theme.bar.border.color": "#88c0d0",
"theme.bar.menus.menu.media.timestamp": "#d8dee9"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#434c53",
"theme.bar.menus.menu.network.switch.puck": "#434c53",
"theme.bar.buttons.systray.customIcon": "#d8dee9",
"theme.bar.border.color": "#88c0d0"
"theme.bar.border.color": "#88c0d0",
"theme.bar.menus.menu.media.timestamp": "#d8dee9"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#434c53",
"theme.bar.menus.menu.network.switch.enabled": "#88c0d0",
"theme.bar.buttons.systray.customIcon": "#d8dee9",
"theme.bar.border.color": "#88c0d0"
"theme.bar.border.color": "#88c0d0",
"theme.bar.menus.menu.media.timestamp": "#d8dee9"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3e4451",
"theme.bar.menus.menu.network.switch.puck": "#4b5263",
"theme.bar.buttons.systray.customIcon": "#abb2bf",
"theme.bar.border.color": "#61afef"
"theme.bar.border.color": "#61afef",
"theme.bar.menus.menu.media.timestamp": "#abb2bf"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3e4451",
"theme.bar.menus.menu.network.switch.puck": "#4b5263",
"theme.bar.buttons.systray.customIcon": "#abb2bf",
"theme.bar.border.color": "#61afef"
"theme.bar.border.color": "#61afef",
"theme.bar.menus.menu.media.timestamp": "#abb2bf"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#3e4451",
"theme.bar.menus.menu.network.switch.enabled": "#c678dd",
"theme.bar.buttons.systray.customIcon": "#abb2bf",
"theme.bar.border.color": "#61afef"
"theme.bar.border.color": "#61afef",
"theme.bar.menus.menu.media.timestamp": "#abb2bf"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#1f1d2e",
"theme.bar.menus.menu.network.switch.puck": "#26233a",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2a273f",
"theme.bar.menus.menu.network.switch.puck": "#393552",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2a273f",
"theme.bar.menus.menu.network.switch.puck": "#393552",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#2a273f",
"theme.bar.menus.menu.network.switch.enabled": "#c4a7e7",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#1f1d2e",
"theme.bar.menus.menu.network.switch.puck": "#26233a",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#1f1d2e",
"theme.bar.menus.menu.network.switch.enabled": "#c4a7e7",
"theme.bar.buttons.systray.customIcon": "#e0def4",
"theme.bar.border.color": "#c4a7e7"
"theme.bar.border.color": "#c4a7e7",
"theme.bar.menus.menu.media.timestamp": "#e0def4"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#565f89",
"theme.bar.menus.menu.network.switch.puck": "#565f89",
"theme.bar.buttons.systray.customIcon": "#c0caf5",
"theme.bar.border.color": "#bb9af7"
"theme.bar.border.color": "#bb9af7",
"theme.bar.menus.menu.media.timestamp": "#c0caf5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#565f89",
"theme.bar.menus.menu.network.switch.puck": "#565f89",
"theme.bar.buttons.systray.customIcon": "#c0caf5",
"theme.bar.border.color": "#bb9af7"
"theme.bar.border.color": "#bb9af7",
"theme.bar.menus.menu.media.timestamp": "#c0caf5"
}

View File

@@ -342,5 +342,6 @@
"theme.bar.menus.menu.network.switch.disabled": "#565f89",
"theme.bar.menus.menu.network.switch.enabled": "#bb9af7",
"theme.bar.buttons.systray.customIcon": "#c0caf5",
"theme.bar.border.color": "#bb9af7"
"theme.bar.border.color": "#bb9af7",
"theme.bar.menus.menu.media.timestamp": "#c0caf5"
}