3 Commits
v1.0.0 ... main

Author SHA1 Message Date
c923d8e20e Merge pull request 'Add dark mode theme with toggle button and improved UI styling' (#1) from ui-improvements into main
All checks were successful
Build and Push Docker Images / build-and-push-backend (push) Successful in 8s
Build and Push Docker Images / build-and-push-frontend (push) Successful in 16s
Reviewed-on: #1
2026-01-31 17:31:37 +00:00
0a5a941222 Add dark mode theme with toggle button and improved UI styling 2026-01-31 18:30:35 +01:00
86068e257f update: icons & prod file
All checks were successful
Build and Push Docker Images / build-and-push-backend (push) Successful in 8s
Build and Push Docker Images / build-and-push-frontend (push) Successful in 15s
2026-01-31 17:58:50 +01:00
14 changed files with 647 additions and 9 deletions

View File

@@ -30,7 +30,6 @@
}
],
"styles": [
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
]
},
@@ -48,7 +47,13 @@
"maximumError": "8kB"
}
],
"outputHashing": "all"
"outputHashing": "all",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
},
"development": {
"optimization": false,

View File

@@ -5,6 +5,11 @@
</a>
<span class="spacer"></span>
<!-- Dark Mode Toggle -->
<button mat-icon-button (click)="toggleTheme()" [matTooltip]="(darkMode$ | async) ? 'Light Mode' : 'Dark Mode'">
<mat-icon>{{ (darkMode$ | async) ? 'light_mode' : 'dark_mode' }}</mat-icon>
</button>
<!-- Show 'edit' icon if not in admin view -->
<a *ngIf="!isAdminView" mat-icon-button routerLink="/admin" matTooltip="Edit Dashboard Items">
<mat-icon>edit</mat-icon>

View File

@@ -1,8 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { RouterModule, RouterOutlet, Router, NavigationEnd } from '@angular/router';
import { MaterialModule } from './material.module';
import { ThemeService } from './services/theme.service';
import { filter } from 'rxjs/operators';
import { CommonModule } from '@angular/common';
import { Observable } from 'rxjs';
@Component({
selector: 'app-root',
@@ -14,8 +16,14 @@ import { CommonModule } from '@angular/common';
export class AppComponent implements OnInit {
title = 'frontend';
isAdminView = false;
darkMode$: Observable<boolean>;
constructor(private router: Router) {}
constructor(
private router: Router,
private themeService: ThemeService
) {
this.darkMode$ = this.themeService.darkMode$;
}
ngOnInit() {
this.router.events.pipe(
@@ -24,4 +32,8 @@ export class AppComponent implements OnInit {
this.isAdminView = event.urlAfterRedirects === '/admin';
});
}
toggleTheme(): void {
this.themeService.toggleTheme();
}
}

View File

@@ -31,6 +31,8 @@ export class HomeComponent implements OnInit {
}
isMaterialIcon(iconUrl: string): boolean {
return this.iconService.isValidIcon(iconUrl);
// Akzeptiere alle Werte die wie Icon-Namen aussehen (nur Kleinbuchstaben und Unterstriche)
// Nicht nur die in der kuratierten Liste
return this.iconService.looksLikeIconName(iconUrl);
}
}

View File

@@ -44,6 +44,14 @@
</mat-autocomplete>
</mat-form-field>
<!-- Link zu allen Material Icons -->
<div class="icon-browse-link">
<a href="https://fonts.google.com/icons?icon.set=Material+Icons" target="_blank" rel="noopener noreferrer">
<mat-icon>open_in_new</mat-icon>
Alle 2000+ Material Icons durchsuchen
</a>
</div>
<!-- Icon Vorschau -->
<div class="icon-preview" *ngIf="itemForm.get('iconName')?.value">
<span class="preview-label">Vorschau:</span>

View File

@@ -8,6 +8,20 @@ mat-card {
width: 100%;
}
::ng-deep .mat-mdc-card-title {
display: block !important;
margin-bottom: 24px !important;
padding: 16px 0 !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
font-size: 24px !important;
font-weight: 500 !important;
text-align: center !important;
}
:host-context(.dark-theme) ::ng-deep .mat-mdc-card-title {
border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
mat-form-field {
width: 100%;
margin-bottom: 10px;
@@ -20,11 +34,56 @@ mat-form-field {
margin-top: 20px;
}
:host-context(.dark-theme) .actions button[mat-stroked-button] {
border-color: rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
}
}
::ng-deep .dark-theme .mat-mdc-stroked-button {
border-color: rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
}
}
.icon-mode-toggle {
margin: 16px 0;
}
.icon-picker-section {
.icon-browse-link {
margin-bottom: 16px;
a {
display: inline-flex;
align-items: center;
gap: 8px;
color: #1976d2;
text-decoration: none;
font-size: 14px;
transition: color 0.2s;
&:hover {
color: #1565c0;
text-decoration: underline;
}
mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
}
}
.icon-preview {
display: flex;
align-items: center;

View File

@@ -118,7 +118,7 @@ export class ItemFormComponent implements OnInit {
if (this.isEditMode) {
this.apiService.updateItem(this.itemId!, itemData).subscribe(() => {
this.router.navigate(['/']);
this.router.navigate(['/admin']);
});
} else {
this.apiService.createItem(itemData).subscribe(() => {
@@ -129,6 +129,6 @@ export class ItemFormComponent implements OnInit {
}
cancel(): void {
this.router.navigate(['/']);
this.router.navigate(['/admin']);
}
}

View File

@@ -2,6 +2,22 @@
padding: 20px;
}
mat-card {
::ng-deep .mat-mdc-card-title {
display: block !important;
margin-bottom: 24px !important;
padding: 16px 0 !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
font-size: 24px !important;
font-weight: 500 !important;
text-align: center !important;
}
}
:host-context(.dark-theme) mat-card ::ng-deep .mat-mdc-card-title {
border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.fab-button {
position: fixed;
bottom: 20px;

View File

@@ -2,12 +2,13 @@ import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Item } from '../models/item';
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class Api {
private apiUrl = '/api/items';
private apiUrl = environment.apiUrl;
constructor(private http: HttpClient) { }

View File

@@ -18,8 +18,17 @@ export class IconService {
{ name: 'apps', category: 'Navigation' },
{ name: 'arrow_back', category: 'Navigation' },
{ name: 'arrow_forward', category: 'Navigation' },
{ name: 'arrow_upward', category: 'Navigation' },
{ name: 'arrow_downward', category: 'Navigation' },
{ name: 'expand_more', category: 'Navigation' },
{ name: 'expand_less', category: 'Navigation' },
{ name: 'fullscreen', category: 'Navigation' },
{ name: 'fullscreen_exit', category: 'Navigation' },
{ name: 'refresh', category: 'Navigation' },
{ name: 'more_vert', category: 'Navigation' },
{ name: 'more_horiz', category: 'Navigation' },
{ name: 'close', category: 'Navigation' },
{ name: 'check', category: 'Navigation' },
// Web & Browser
{ name: 'web', category: 'Web' },
@@ -29,96 +38,267 @@ export class IconService {
{ name: 'http', category: 'Web' },
{ name: 'https', category: 'Web' },
{ name: 'vpn_lock', category: 'Web' },
{ name: 'domain', category: 'Web' },
{ name: 'dns', category: 'Web' },
{ name: 'wifi', category: 'Web' },
{ name: 'router', category: 'Web' },
{ name: 'storage', category: 'Web' },
{ name: 'cloud_queue', category: 'Web' },
{ name: 'cloud_done', category: 'Web' },
{ name: 'cloud_off', category: 'Web' },
// Kommunikation
{ name: 'email', category: 'Kommunikation' },
{ name: 'mail', category: 'Kommunikation' },
{ name: 'mail_outline', category: 'Kommunikation' },
{ name: 'chat', category: 'Kommunikation' },
{ name: 'chat_bubble', category: 'Kommunikation' },
{ name: 'message', category: 'Kommunikation' },
{ name: 'forum', category: 'Kommunikation' },
{ name: 'phone', category: 'Kommunikation' },
{ name: 'call', category: 'Kommunikation' },
{ name: 'video_call', category: 'Kommunikation' },
{ name: 'voicemail', category: 'Kommunikation' },
{ name: 'textsms', category: 'Kommunikation' },
{ name: 'contact_mail', category: 'Kommunikation' },
{ name: 'contacts', category: 'Kommunikation' },
// Content
{ name: 'create', category: 'Content' },
{ name: 'edit', category: 'Content' },
{ name: 'add', category: 'Content' },
{ name: 'add_circle', category: 'Content' },
{ name: 'remove', category: 'Content' },
{ name: 'delete', category: 'Content' },
{ name: 'delete_outline', category: 'Content' },
{ name: 'content_copy', category: 'Content' },
{ name: 'content_cut', category: 'Content' },
{ name: 'content_paste', category: 'Content' },
{ name: 'save', category: 'Content' },
{ name: 'save_alt', category: 'Content' },
{ name: 'undo', category: 'Content' },
{ name: 'redo', category: 'Content' },
{ name: 'archive', category: 'Content' },
{ name: 'unarchive', category: 'Content' },
{ name: 'flag', category: 'Content' },
{ name: 'sort', category: 'Content' },
{ name: 'filter_list', category: 'Content' },
// Dateien & Ordner
{ name: 'folder', category: 'Dateien' },
{ name: 'folder_open', category: 'Dateien' },
{ name: 'folder_shared', category: 'Dateien' },
{ name: 'folder_special', category: 'Dateien' },
{ name: 'create_new_folder', category: 'Dateien' },
{ name: 'description', category: 'Dateien' },
{ name: 'insert_drive_file', category: 'Dateien' },
{ name: 'text_snippet', category: 'Dateien' },
{ name: 'article', category: 'Dateien' },
{ name: 'attachment', category: 'Dateien' },
{ name: 'cloud', category: 'Dateien' },
{ name: 'cloud_upload', category: 'Dateien' },
{ name: 'cloud_download', category: 'Dateien' },
{ name: 'download', category: 'Dateien' },
{ name: 'upload', category: 'Dateien' },
{ name: 'file_download', category: 'Dateien' },
{ name: 'file_upload', category: 'Dateien' },
// Medien
{ name: 'image', category: 'Medien' },
{ name: 'photo', category: 'Medien' },
{ name: 'photo_camera', category: 'Medien' },
{ name: 'photo_library', category: 'Medien' },
{ name: 'video_library', category: 'Medien' },
{ name: 'movie', category: 'Medien' },
{ name: 'videocam', category: 'Medien' },
{ name: 'music_note', category: 'Medien' },
{ name: 'audiotrack', category: 'Medien' },
{ name: 'library_music', category: 'Medien' },
{ name: 'play_arrow', category: 'Medien' },
{ name: 'pause', category: 'Medien' },
{ name: 'stop', category: 'Medien' },
{ name: 'skip_next', category: 'Medien' },
{ name: 'skip_previous', category: 'Medien' },
{ name: 'volume_up', category: 'Medien' },
{ name: 'volume_off', category: 'Medien' },
// Business
{ name: 'work', category: 'Business' },
{ name: 'business', category: 'Business' },
{ name: 'business_center', category: 'Business' },
{ name: 'store', category: 'Business' },
{ name: 'storefront', category: 'Business' },
{ name: 'shopping_cart', category: 'Business' },
{ name: 'shopping_bag', category: 'Business' },
{ name: 'payment', category: 'Business' },
{ name: 'credit_card', category: 'Business' },
{ name: 'account_balance', category: 'Business' },
{ name: 'account_balance_wallet', category: 'Business' },
{ name: 'monetization_on', category: 'Business' },
{ name: 'attach_money', category: 'Business' },
{ name: 'trending_up', category: 'Business' },
{ name: 'trending_down', category: 'Business' },
{ name: 'show_chart', category: 'Business' },
{ name: 'bar_chart', category: 'Business' },
{ name: 'pie_chart', category: 'Business' },
// Sozial
{ name: 'person', category: 'Sozial' },
{ name: 'person_outline', category: 'Sozial' },
{ name: 'people', category: 'Sozial' },
{ name: 'group', category: 'Sozial' },
{ name: 'account_circle', category: 'Sozial' },
{ name: 'account_box', category: 'Sozial' },
{ name: 'favorite', category: 'Sozial' },
{ name: 'favorite_border', category: 'Sozial' },
{ name: 'thumb_up', category: 'Sozial' },
{ name: 'thumb_down', category: 'Sozial' },
{ name: 'share', category: 'Sozial' },
{ name: 'cake', category: 'Sozial' },
{ name: 'public', category: 'Sozial' },
{ name: 'sentiment_satisfied', category: 'Sozial' },
{ name: 'mood', category: 'Sozial' },
// System
{ name: 'settings', category: 'System' },
{ name: 'settings_applications', category: 'System' },
{ name: 'build', category: 'System' },
{ name: 'build_circle', category: 'System' },
{ name: 'search', category: 'System' },
{ name: 'info', category: 'System' },
{ name: 'info_outline', category: 'System' },
{ name: 'help', category: 'System' },
{ name: 'help_outline', category: 'System' },
{ name: 'warning', category: 'System' },
{ name: 'error', category: 'System' },
{ name: 'error_outline', category: 'System' },
{ name: 'check_circle', category: 'System' },
{ name: 'check_circle_outline', category: 'System' },
{ name: 'notifications', category: 'System' },
{ name: 'notifications_active', category: 'System' },
{ name: 'notifications_off', category: 'System' },
{ name: 'update', category: 'System' },
{ name: 'sync', category: 'System' },
{ name: 'power_settings_new', category: 'System' },
{ name: 'visibility', category: 'System' },
{ name: 'visibility_off', category: 'System' },
// Geräte
{ name: 'computer', category: 'Geräte' },
{ name: 'desktop_windows', category: 'Geräte' },
{ name: 'phone_android', category: 'Geräte' },
{ name: 'phone_iphone', category: 'Geräte' },
{ name: 'tablet', category: 'Geräte' },
{ name: 'tablet_mac', category: 'Geräte' },
{ name: 'laptop', category: 'Geräte' },
{ name: 'laptop_mac', category: 'Geräte' },
{ name: 'tv', category: 'Geräte' },
{ name: 'watch', category: 'Geräte' },
{ name: 'smartphone', category: 'Geräte' },
{ name: 'devices', category: 'Geräte' },
{ name: 'headset', category: 'Geräte' },
{ name: 'keyboard', category: 'Geräte' },
{ name: 'mouse', category: 'Geräte' },
{ name: 'print', category: 'Geräte' },
{ name: 'scanner', category: 'Geräte' },
// Entwicklung
// Entwicklung & Git
{ name: 'code', category: 'Entwicklung' },
{ name: 'code_off', category: 'Entwicklung' },
{ name: 'developer_mode', category: 'Entwicklung' },
{ name: 'bug_report', category: 'Entwicklung' },
{ name: 'terminal', category: 'Entwicklung' },
{ name: 'api', category: 'Entwicklung' },
{ name: 'integration_instructions', category: 'Entwicklung' },
{ name: 'source', category: 'Entwicklung' },
{ name: 'account_tree', category: 'Entwicklung' },
{ name: 'fork_right', category: 'Entwicklung' },
{ name: 'merge_type', category: 'Entwicklung' },
{ name: 'commit', category: 'Entwicklung' },
{ name: 'compare_arrows', category: 'Entwicklung' },
{ name: 'difference', category: 'Entwicklung' },
{ name: 'webhook', category: 'Entwicklung' },
{ name: 'data_object', category: 'Entwicklung' },
{ name: 'database', category: 'Entwicklung' },
{ name: 'schema', category: 'Entwicklung' },
{ name: 'memory', category: 'Entwicklung' },
{ name: 'developer_board', category: 'Entwicklung' },
// Sicherheit
{ name: 'lock', category: 'Sicherheit' },
{ name: 'lock_open', category: 'Sicherheit' },
{ name: 'lock_outline', category: 'Sicherheit' },
{ name: 'security', category: 'Sicherheit' },
{ name: 'verified_user', category: 'Sicherheit' },
{ name: 'verified', category: 'Sicherheit' },
{ name: 'vpn_key', category: 'Sicherheit' },
{ name: 'vpn_lock', category: 'Sicherheit' },
{ name: 'shield', category: 'Sicherheit' },
{ name: 'fingerprint', category: 'Sicherheit' },
{ name: 'admin_panel_settings', category: 'Sicherheit' },
{ name: 'privacy_tip', category: 'Sicherheit' },
{ name: 'key', category: 'Sicherheit' },
// Orte & Karten
{ name: 'location_on', category: 'Orte' },
{ name: 'location_off', category: 'Orte' },
{ name: 'map', category: 'Orte' },
{ name: 'place', category: 'Orte' },
{ name: 'navigation', category: 'Orte' },
{ name: 'explore', category: 'Orte' },
{ name: 'local_cafe', category: 'Orte' },
{ name: 'local_restaurant', category: 'Orte' },
{ name: 'local_pizza', category: 'Orte' },
{ name: 'local_bar', category: 'Orte' },
{ name: 'local_hotel', category: 'Orte' },
{ name: 'local_airport', category: 'Orte' },
{ name: 'flight', category: 'Orte' },
{ name: 'directions_car', category: 'Orte' },
{ name: 'directions_bus', category: 'Orte' },
{ name: 'train', category: 'Orte' },
// Zeit & Kalender
{ name: 'schedule', category: 'Zeit' },
{ name: 'access_time', category: 'Zeit' },
{ name: 'alarm', category: 'Zeit' },
{ name: 'timer', category: 'Zeit' },
{ name: 'event', category: 'Zeit' },
{ name: 'calendar_today', category: 'Zeit' },
{ name: 'calendar_month', category: 'Zeit' },
{ name: 'date_range', category: 'Zeit' },
{ name: 'today', category: 'Zeit' },
{ name: 'history', category: 'Zeit' },
// Tools & Utilities
{ name: 'construction', category: 'Tools' },
{ name: 'handyman', category: 'Tools' },
{ name: 'engineering', category: 'Tools' },
{ name: 'science', category: 'Tools' },
{ name: 'calculate', category: 'Tools' },
{ name: 'rule', category: 'Tools' },
{ name: 'colorize', category: 'Tools' },
{ name: 'palette', category: 'Tools' },
{ name: 'brush', category: 'Tools' },
{ name: 'gradient', category: 'Tools' },
// Verschiedenes
{ name: 'star', category: 'Verschiedenes' },
{ name: 'star_border', category: 'Verschiedenes' },
{ name: 'star_half', category: 'Verschiedenes' },
{ name: 'bookmark', category: 'Verschiedenes' },
{ name: 'bookmark_border', category: 'Verschiedenes' },
{ name: 'label', category: 'Verschiedenes' },
{ name: 'label_important', category: 'Verschiedenes' },
{ name: 'lightbulb', category: 'Verschiedenes' },
{ name: 'lightbulb_outline', category: 'Verschiedenes' },
{ name: 'extension', category: 'Verschiedenes' },
{ name: 'widgets', category: 'Verschiedenes' },
{ name: 'grade', category: 'Verschiedenes' },
{ name: 'emoji_objects', category: 'Verschiedenes' },
{ name: 'emoji_events', category: 'Verschiedenes' },
{ name: 'sports_esports', category: 'Verschiedenes' },
{ name: 'rocket_launch', category: 'Verschiedenes' },
{ name: 'campaign', category: 'Verschiedenes' },
];
constructor() { }
@@ -153,9 +333,26 @@ export class IconService {
}
/**
* Prüft, ob ein Icon-Name in der Liste existiert
* Prüft, ob ein Icon-Name in der kuratierten Liste existiert
* Hinweis: Auch andere Material Icon Namen sind gültig, auch wenn sie nicht in der Liste sind
*/
isValidIcon(iconName: string): boolean {
return this.icons.some(icon => icon.name === iconName);
}
/**
* Prüft, ob ein Icon in der kuratierten Liste ist
* Gibt true zurück für bekannte Icons, false für unbekannte (aber möglicherweise gültige) Icons
*/
isKnownIcon(iconName: string): boolean {
return this.icons.some(icon => icon.name === iconName);
}
/**
* Gibt true zurück, wenn der String wahrscheinlich ein Material Icon Name ist
* (nur Kleinbuchstaben und Unterstriche)
*/
looksLikeIconName(value: string): boolean {
return /^[a-z0-9_]+$/.test(value);
}
}

View File

@@ -0,0 +1,93 @@
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class ThemeService {
private readonly THEME_COOKIE = 'theme-preference';
private darkModeSubject = new BehaviorSubject<boolean>(this.getInitialTheme());
darkMode$ = this.darkModeSubject.asObservable();
constructor() {
// Theme beim Start anwenden
this.applyTheme(this.darkModeSubject.value);
}
/**
* Ermittelt das initiale Theme:
* 1. Cookie-Präferenz (falls vorhanden)
* 2. Browser-System-Einstellung (prefers-color-scheme)
*/
private getInitialTheme(): boolean {
const cookieTheme = this.getCookie(this.THEME_COOKIE);
if (cookieTheme !== null) {
return cookieTheme === 'dark';
}
// Fallback auf System-Präferenz
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
}
/**
* Schaltet zwischen Light und Dark Mode um
*/
toggleTheme(): void {
const newTheme = !this.darkModeSubject.value;
this.setTheme(newTheme);
}
/**
* Setzt ein spezifisches Theme
*/
setTheme(isDark: boolean): void {
this.darkModeSubject.next(isDark);
this.applyTheme(isDark);
this.setCookie(this.THEME_COOKIE, isDark ? 'dark' : 'light', 365);
}
/**
* Gibt das aktuelle Theme zurück
*/
isDarkMode(): boolean {
return this.darkModeSubject.value;
}
/**
* Wendet das Theme auf das Document an
*/
private applyTheme(isDark: boolean): void {
if (isDark) {
document.body.classList.add('dark-theme');
} else {
document.body.classList.remove('dark-theme');
}
}
/**
* Setzt ein Cookie
*/
private setCookie(name: string, value: string, days: number): void {
const expires = new Date();
expires.setTime(expires.getTime() + days * 24 * 60 * 60 * 1000);
document.cookie = `${name}=${value};expires=${expires.toUTCString()};path=/;SameSite=Lax`;
}
/**
* Liest ein Cookie aus
*/
private getCookie(name: string): string | null {
const nameEQ = name + '=';
const ca = document.cookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
}

View File

@@ -0,0 +1,5 @@
// Production Environment (Container)
export const environment = {
production: true,
apiUrl: '/api/items' // Relativer Pfad für Nginx Proxy
};

View File

@@ -0,0 +1,5 @@
// Development Environment
export const environment = {
production: false,
apiUrl: 'http://localhost:8080/api/items'
};

View File

@@ -1 +1,231 @@
/* You can add global styles to this file, and also import other style files */
/* Import Material Design Prebuilt Themes */
@import '@angular/material/prebuilt-themes/indigo-pink.css';
/* Light Theme (Default) */
:root {
--background-color: #fafafa;
--card-background: #ffffff;
--text-color: #000000;
--text-secondary: #666666;
--border-color: #e0e0e0;
}
/* Dark Theme */
body.dark-theme {
--background-color: #121212;
--card-background: #1e1e1e;
--text-color: #ffffff;
--text-secondary: #b0b0b0;
--border-color: #333333;
/* Material Components Dark Theme Override */
background-color: var(--background-color);
color: var(--text-color);
/* Material Card Styling */
.mat-mdc-card {
background-color: var(--card-background) !important;
color: var(--text-color) !important;
}
/* Material Form Fields */
.mat-mdc-form-field {
color: var(--text-color);
.mat-mdc-form-field-focus-overlay {
background-color: rgba(255, 255, 255, 0.05);
}
}
.mat-mdc-text-field-wrapper {
background-color: #2a2a2a !important;
}
.mat-mdc-form-field-flex {
background-color: #2a2a2a !important;
}
.mdc-text-field--filled {
background-color: #2a2a2a !important;
}
.mat-mdc-input-element {
color: var(--text-color) !important;
caret-color: var(--text-color);
}
.mat-mdc-form-field-label {
color: var(--text-secondary) !important;
}
.mat-mdc-floating-label {
color: var(--text-secondary) !important;
}
.mdc-floating-label {
color: var(--text-secondary) !important;
}
/* Material Slide Toggle */
.mat-mdc-slide-toggle {
color: var(--text-color);
.mdc-switch__track {
background-color: #424242 !important;
border-color: #424242 !important;
}
.mdc-switch--selected .mdc-switch__track {
background-color: #3f51b5 !important;
border-color: #3f51b5 !important;
}
}
/* Material Autocomplete */
.mat-mdc-autocomplete-panel {
background-color: #2a2a2a !important;
color: var(--text-color);
}
.mat-mdc-option {
color: var(--text-color) !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
}
&.mat-mdc-option-active {
background-color: rgba(255, 255, 255, 0.08) !important;
}
}
/* Material Table */
.mat-mdc-table {
background-color: var(--card-background);
color: var(--text-color);
}
.mat-mdc-header-cell {
color: var(--text-color);
}
.mat-mdc-cell {
color: var(--text-color);
}
/* Material Buttons */
.mat-mdc-raised-button, .mat-mdc-stroked-button, .mat-mdc-button {
color: var(--text-color);
}
.mat-mdc-stroked-button {
border-color: var(--border-color);
}
/* Material Icon Colors */
.mat-icon {
color: var(--text-color);
}
/* Card Titles and Content */
.mat-mdc-card-title {
color: var(--text-color) !important;
}
.mat-mdc-card-content {
color: var(--text-color) !important;
}
mat-card-title {
color: var(--text-color) !important;
border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
mat-card-content {
color: var(--text-color) !important;
}
/* Dark theme border for card titles */
mat-card mat-card-title {
border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
/* Slide Toggle Label */
.mat-mdc-slide-toggle-label {
color: var(--text-color) !important;
}
.mdc-label {
color: var(--text-color) !important;
}
/* Button Text */
.mat-mdc-button, .mat-mdc-stroked-button, .mat-mdc-raised-button {
color: var(--text-color) !important;
.mdc-button__label {
color: var(--text-color) !important;
}
}
.mat-mdc-stroked-button {
border-color: rgba(255, 255, 255, 0.3) !important;
&:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
}
}
.mat-mdc-button.mat-primary {
color: #90caf9 !important;
}
/* Links */
a {
color: #90caf9;
&:hover {
color: #64b5f6;
}
}
/* Specific styling for icon picker */
.icon-browse-link a {
color: #90caf9 !important;
mat-icon {
color: #90caf9 !important;
}
}
.icon-preview {
background-color: #2a2a2a !important;
color: var(--text-color) !important;
.preview-label {
color: var(--text-secondary) !important;
}
}
/* Icon category in autocomplete */
.icon-category {
color: var(--text-secondary) !important;
}
.icon-option-text {
color: var(--text-color) !important;
}
}
/* Global Body Styling */
body {
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-color);
font-family: Roboto, "Helvetica Neue", sans-serif;
transition: background-color 0.3s ease, color 0.3s ease;
}