mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-29 19:52:54 +01:00
Theme system refactor (#31)
This commit is contained in:
1 parent
8606940dee
commit
83aaeb94f6
82 files changed
+909
-739
No files matched your search
@@ -11,8 +11,10 @@ class PlaceholderWidget extends WidgetType {
|
||||
}
|
||||
toDOM() {
|
||||
const elt = document.createElement('span');
|
||||
elt.className = `placeholder-widget ${
|
||||
!this.isExistingVariable ? 'placeholder-widget-error' : ''
|
||||
elt.className = `x-theme-placeholder-widget placeholder-widget ${
|
||||
this.isExistingVariable
|
||||
? 'x-theme-placeholder-widget--primary'
|
||||
: 'x-theme-placeholder-widget--danger'
|
||||
}`;
|
||||
elt.title = !this.isExistingVariable ? 'Variable not found in active environment' : '';
|
||||
elt.textContent = this.name;
|
||||
|
||||
Reference in new issue
Block a user