✨ feat(launcher): add Digital Wellbeing plugin with screen time tracking
This commit is contained in:
7 files changed
+1047
-4
No files matched your search
@@ -213,3 +213,151 @@
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Screen Time Widget Styling - GNOME Digital Wellbeing Style */
|
||||
#screentime-widget {
|
||||
background-color: var(--surface);
|
||||
border-radius: 20px;
|
||||
padding: 0;
|
||||
margin: 8px 0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Title styling */
|
||||
.screentime-title {
|
||||
color: var(--foreground);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Large time display */
|
||||
.screentime-time-display {
|
||||
margin: 12px 0;
|
||||
font-family: "SF Pro Display", system-ui, sans-serif;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
/* Summary cards */
|
||||
.screentime-card {
|
||||
background-color: var(--surface-bright);
|
||||
border-radius: 12px;
|
||||
padding: 16px 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.screentime-card:hover {
|
||||
background-color: var(--surface-container);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* App item styling */
|
||||
.screentime-app-item {
|
||||
background-color: var(--surface-bright);
|
||||
border-radius: 12px;
|
||||
padding: 12px 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.screentime-app-item:hover {
|
||||
background-color: var(--surface-container);
|
||||
}
|
||||
|
||||
/* Grid card styling - compact for launcher */
|
||||
.screentime-grid-card {
|
||||
background-color: var(--surface-bright);
|
||||
border-radius: 8px;
|
||||
padding: 6px 4px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
transition: all 0.2s ease;
|
||||
min-width: 80px;
|
||||
min-height: 70px;
|
||||
}
|
||||
|
||||
.screentime-grid-card:hover {
|
||||
background-color: var(--surface-container);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Grid icon styling */
|
||||
.screentime-grid-icon {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-bright));
|
||||
border-radius: 8px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
/* App icon placeholder */
|
||||
.screentime-app-icon {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-bright));
|
||||
border-radius: 8px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
/* Progress bar container */
|
||||
.screentime-progress-container {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Modern progress bars */
|
||||
.screentime-progress {
|
||||
border-radius: 3px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.screentime-progress trough {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 3px;
|
||||
min-height: 6px;
|
||||
}
|
||||
|
||||
.screentime-progress progress {
|
||||
border-radius: 3px;
|
||||
min-height: 6px;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Modern usage intensity colors */
|
||||
.screentime-progress.high-usage progress {
|
||||
background: linear-gradient(90deg, #ff6b6b, #ee5a52);
|
||||
}
|
||||
|
||||
.screentime-progress.medium-usage progress {
|
||||
background: linear-gradient(90deg, #ffd93d, #ffb700);
|
||||
}
|
||||
|
||||
.screentime-progress.low-usage progress {
|
||||
background: linear-gradient(90deg, #51cf66, #37b24d);
|
||||
}
|
||||
|
||||
/* Scrolled window styling */
|
||||
#screentime-widget scrolledwindow {
|
||||
border-radius: 12px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#screentime-widget scrolledwindow scrollbar {
|
||||
background-color: transparent;
|
||||
border-radius: 6px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#screentime-widget scrolledwindow scrollbar slider {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
min-width: 6px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
#screentime-widget scrolledwindow scrollbar slider:hover {
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
/* Labels */
|
||||
#screentime-widget label {
|
||||
color: var(--foreground);
|
||||
}
|
||||
Reference in new issue
Block a user