new view, gnome extension
This commit is contained in:
@@ -56,7 +56,6 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
background: #f9f9f9;
|
||||
border-left: 4px solid;
|
||||
font-size: 11pt;
|
||||
}
|
||||
@@ -83,12 +82,9 @@
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* Workspace colors */
|
||||
.ws-Work { border-color: #2563eb; background: #eff6ff; }
|
||||
.ws-Think { border-color: #7c3aed; background: #f5f3ff; }
|
||||
.ws-Plan { border-color: #059669; background: #ecfdf5; }
|
||||
.ws-Other { border-color: #64748b; background: #f8fafc; }
|
||||
.ws-Away { border-color: #94a3b8; background: #f1f5f9; }
|
||||
/* Active vs idle workspace indicator */
|
||||
.ws-active { font-weight: bold; }
|
||||
.ws-idle { opacity: 0.6; }
|
||||
|
||||
.stats {
|
||||
margin: 20px 0;
|
||||
@@ -161,7 +157,13 @@
|
||||
|
||||
<div class="switches-container">
|
||||
{% for switch in switches %}
|
||||
<div class="switch-row ws-{{ switch.workspace }}">
|
||||
{% set is_active = switch.workspace in ['Plan', 'Think', 'Work'] %}
|
||||
{% set task_hash = switch.task_path|hash if switch.task_path else 0 %}
|
||||
{% set border_hue = task_hash % 360 %}
|
||||
{% set border_color = 'hsl(%d, 70%%, 50%%)'|format(border_hue) %}
|
||||
{% set bg_color = 'hsl(%d, 70%%, 95%%)'|format(border_hue) %}
|
||||
<div class="switch-row {{ 'ws-active' if is_active else 'ws-idle' }}"
|
||||
style="border-left-color: {{ border_color }}; background-color: {{ bg_color }};">
|
||||
<div class="switch-time">{{ switch.date.strftime('%m/%d %H:%M:%S') }}</div>
|
||||
<div class="switch-workspace">{{ switch.workspace }}</div>
|
||||
<div class="switch-task">{{ switch.task_path }}</div>
|
||||
|
||||
Reference in New Issue
Block a user