All checks were successful
Queue Release Build / prepare (push) Successful in 11s
Deploy Web Apps / deploy (push) Successful in 14m0s
Queue Release Build / build-linux (push) Successful in 35m41s
Queue Release Build / build-windows (push) Successful in 28m53s
Queue Release Build / finalize (push) Successful in 2m6s
29 lines
744 B
TypeScript
29 lines
744 B
TypeScript
import {
|
|
Component,
|
|
computed,
|
|
inject
|
|
} from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { ElementPickerService } from '../application/element-picker.service';
|
|
import { ThemeRegistryService } from '../application/theme-registry.service';
|
|
|
|
@Component({
|
|
selector: 'app-theme-picker-overlay',
|
|
standalone: true,
|
|
imports: [CommonModule],
|
|
templateUrl: './theme-picker-overlay.component.html'
|
|
})
|
|
export class ThemePickerOverlayComponent {
|
|
readonly picker = inject(ElementPickerService);
|
|
readonly registry = inject(ThemeRegistryService);
|
|
|
|
readonly hoveredEntry = computed(() => {
|
|
return this.registry.getDefinition(this.picker.hoveredKey());
|
|
});
|
|
|
|
cancel(): void {
|
|
this.picker.cancel();
|
|
}
|
|
}
|