From 28b663ce4119a5d7fd175b1846c5b704c4ea03ad Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Mon, 18 Jul 2016 14:58:40 -0700 Subject: [PATCH] [Frontend] Glyph-related style changes to toolbars and buttons Fixes #1047 Glyph refactoring WIP for toolbar buttons; Timeline glyph refactoring continued --- .../res/sass/controls/_color-palette.scss | 8 ++-- .../general/res/sass/controls/_menus.scss | 14 ++++-- .../res/templates/controls/switcher.html | 2 - platform/core/src/actions/ActionAggregator.js | 1 + platform/features/layout/bundle.js | 4 ++ platform/features/timeline/bundle.js | 11 ++++- .../forms/res/templates/controls/button.html | 7 +-- .../forms/res/templates/controls/color.html | 45 ++++++------------- .../src/controllers/DialogButtonController.js | 1 + 9 files changed, 47 insertions(+), 46 deletions(-) diff --git a/platform/commonUI/general/res/sass/controls/_color-palette.scss b/platform/commonUI/general/res/sass/controls/_color-palette.scss index bd3ea9eb0b..1f98c3afc1 100644 --- a/platform/commonUI/general/res/sass/controls/_color-palette.scss +++ b/platform/commonUI/general/res/sass/controls/_color-palette.scss @@ -40,13 +40,15 @@ border: 1px solid transparent; color: $colorSelectedColor; display: block; - font-family: 'symbolsfont'; float: left; height: $d; width: $d; - line-height: $d; + line-height: $d * 0.9; margin: 0 ($m * 1px) ($m * 1px) 0; text-align: center; - vertical-align: middle; + &:before { + // Check mark for selected items + font-size: 0.8em; + } } .s-palette-item { diff --git a/platform/commonUI/general/res/sass/controls/_menus.scss b/platform/commonUI/general/res/sass/controls/_menus.scss index d945321136..aa3a0e70fb 100644 --- a/platform/commonUI/general/res/sass/controls/_menus.scss +++ b/platform/commonUI/general/res/sass/controls/_menus.scss @@ -36,6 +36,17 @@ margin-left: $interiorMarginSm; } + .color-swatch { + // Used in color menu buttons in toolbar + $d: 10px; + display: inline-block; + border: 1px solid rgba($colorBtnFg, 0.2); + height: $d; width: $d; + vertical-align: middle; + margin-left: $interiorMarginSm; + margin-top: -2px; + } + &:after { // Adds the downward facing 'context available / invoke menu' arrow element @include contextArrow(); @@ -52,9 +63,6 @@ .menu { left: 0; text-align: left; - //.ui-symbol.icon { - // width: 12px; - //} } } diff --git a/platform/commonUI/general/res/templates/controls/switcher.html b/platform/commonUI/general/res/templates/controls/switcher.html index e797a3121c..fb12d431ee 100644 --- a/platform/commonUI/general/res/templates/controls/switcher.html +++ b/platform/commonUI/general/res/templates/controls/switcher.html @@ -27,7 +27,6 @@ - {{ngModel.selected.name}}