1 <md-menu md-position-mode="target-right target">
2 <div ng-click="$mdMenu.open($event)">
3 <ms-color-picker-button>
7 ng-click="$mdMenu.open($event)"
8 ng-class="vm.selectedColor.class"
10 <span ng-show="vm.selectedColor.palette">
11 {{vm.selectedColor.palette}} {{vm.selectedColor.hue}}
13 <span ng-show="!vm.selectedColor.palette"> Select Color </span>
15 </ms-color-picker-button>
18 <md-menu-content class="ms-material-color-picker-menu-content" layout-column>
20 ng-class="vm.selectedColor.class || 'md-accent-bg'"
21 class="md-whiteframe-4dp"
23 layout-align="space-between center"
27 ng-click="vm.activateHueSelection(false,false)"
28 class="md-icon-button"
29 ng-class="{'hidden':!vm.selectedPalette}"
32 <md-icon md-font-icon="icon-arrow-left" class="s20"></md-icon>
35 <span ng-if="vm.selectedColor.palette">
36 {{vm.selectedColor.palette}} {{vm.selectedColor.hue}}
39 <span ng-if="!vm.selectedColor.palette"> Select Color </span>
42 class="remove-color-button md-icon-button"
43 ng-click="vm.removeColor()"
44 aria-label="Remove Color"
46 <md-icon md-font-icon="icon-delete" class="s20"></md-icon>
50 <div class="colors" ms-scroll>
51 <div ng-show="!vm.selectedPalette" layout="row" layout-wrap>
54 ng-class="'md-'+palette+'-500-bg'"
55 ng-repeat="(palette, hues) in vm.palettes"
56 ng-click="vm.activateHueSelection(palette,hues)"
58 layout-align="start end"
62 <span class="label"> {{palette}} </span>
66 <div ng-show="vm.selectedPalette" layout="row" layout-wrap>
69 ng-class="'md-'+vm.selectedPalette+'-'+hue+'-bg'"
70 ng-repeat="(hue, values) in vm.selectedHues"
71 ng-click="vm.selectColor(vm.selectedPalette,hue)"
73 layout-align="start end"
76 <span class="label"> {{hue}} </span>
78 ng-if="vm.selectedPalette == vm.selectedColor.palette && hue == vm.selectedColor.hue"
79 class="s16 icon-check"