Merge pull request #308 from bryvin/theme-toggle-titles
Dock Icon Titles/Names
This commit is contained in:
@@ -213,11 +213,13 @@ angular.module('app')
|
|||||||
this.reloadDockShortcuts = function() {
|
this.reloadDockShortcuts = function() {
|
||||||
let shortcuts = [];
|
let shortcuts = [];
|
||||||
for(var theme of this.themesWithIcons) {
|
for(var theme of this.themesWithIcons) {
|
||||||
|
var name = theme.content.package_info.name;
|
||||||
var icon = theme.content.package_info.dock_icon;
|
var icon = theme.content.package_info.dock_icon;
|
||||||
if(!icon) {
|
if(!icon) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
shortcuts.push({
|
shortcuts.push({
|
||||||
|
name: name,
|
||||||
component: theme,
|
component: theme,
|
||||||
icon: icon
|
icon: icon
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -53,9 +53,9 @@
|
|||||||
|
|
||||||
.sk-app-bar-item.dock-shortcut{"ng-repeat" => "shortcut in ctrl.dockShortcuts"}
|
.sk-app-bar-item.dock-shortcut{"ng-repeat" => "shortcut in ctrl.dockShortcuts"}
|
||||||
.sk-app-bar-item-column{"ng-click" => "ctrl.selectShortcut(shortcut)", "ng-class" => "{'underline': shortcut.component.active}"}
|
.sk-app-bar-item-column{"ng-click" => "ctrl.selectShortcut(shortcut)", "ng-class" => "{'underline': shortcut.component.active}"}
|
||||||
.div{"ng-if" => "shortcut.icon.type == 'circle'"}
|
.div{"ng-if" => "shortcut.icon.type == 'circle'", "title" => "{{shortcut.name}}"}
|
||||||
.sk-circle.small{"ng-style" => "{'background-color': shortcut.icon.background_color, 'border-color': shortcut.icon.border_color}"}
|
.sk-circle.small{"ng-style" => "{'background-color': shortcut.icon.background_color, 'border-color': shortcut.icon.border_color}"}
|
||||||
.div{"ng-if" => "shortcut.icon.type == 'svg'"}
|
.div{"ng-if" => "shortcut.icon.type == 'svg'", "title" => "{{shortcut.name}}"}
|
||||||
.svg-item{"ng-attr-id" => "dock-svg-{{shortcut.component.uuid}}", "elem-ready" => "ctrl.initSvgForShortcut(shortcut)"}
|
.svg-item{"ng-attr-id" => "dock-svg-{{shortcut.component.uuid}}", "elem-ready" => "ctrl.initSvgForShortcut(shortcut)"}
|
||||||
|
|
||||||
.sk-app-bar-item.border{"ng-if" => "ctrl.hasPasscode()"}
|
.sk-app-bar-item.border{"ng-if" => "ctrl.hasPasscode()"}
|
||||||
|
|||||||
Reference in New Issue
Block a user