diff --git a/platform/commonUI/browse/bundle.js b/platform/commonUI/browse/bundle.js index 9fb7015456..956889960b 100644 --- a/platform/commonUI/browse/bundle.js +++ b/platform/commonUI/browse/bundle.js @@ -218,7 +218,7 @@ define([ "$window" ], "group": "windowing", - "glyph": "y", + "cssclass": "icon-new-window", "priority": "preferred" }, { @@ -226,7 +226,6 @@ define([ "implementation": FullscreenAction, "category": "view-control", "group": "windowing", - "glyph": "z", "priority": "default" } ], diff --git a/platform/commonUI/browse/src/windowing/FullscreenAction.js b/platform/commonUI/browse/src/windowing/FullscreenAction.js index e9fcf9df76..44fc6deba5 100644 --- a/platform/commonUI/browse/src/windowing/FullscreenAction.js +++ b/platform/commonUI/browse/src/windowing/FullscreenAction.js @@ -51,7 +51,8 @@ define( // based on whether or not we are currently // full screen. var metadata = Object.create(FullscreenAction); - metadata.glyph = screenfull.isFullscreen ? "_" : "z"; + //metadata.glyph = screenfull.isFullscreen ? "_" : "z"; + metadata.cssclass = screenfull.isFullscreen ? "icon-fullscreen-expand" : "icon-fullscreen-collapse"; metadata.description = screenfull.isFullscreen ? EXIT_FULLSCREEN : ENTER_FULLSCREEN; metadata.group = "windowing"; diff --git a/platform/commonUI/edit/bundle.js b/platform/commonUI/edit/bundle.js index 3a9deb649e..e14f66e7c3 100644 --- a/platform/commonUI/edit/bundle.js +++ b/platform/commonUI/edit/bundle.js @@ -172,7 +172,8 @@ define([ ], "description": "Edit", "category": "view-control", - "glyph": "p" + "glyph": "p", + "cssclass": "icon-pencil" }, { "key": "properties", @@ -182,6 +183,7 @@ define([ ], "implementation": PropertiesAction, "glyph": "p", + "cssclass": "icon-pencil", "name": "Edit Properties...", "description": "Edit properties of this object.", "depends": [ diff --git a/platform/commonUI/general/res/sass/_glyphs.scss b/platform/commonUI/general/res/sass/_glyphs.scss index b28cce5ed4..2a6530eaba 100644 --- a/platform/commonUI/general/res/sass/_glyphs.scss +++ b/platform/commonUI/general/res/sass/_glyphs.scss @@ -1,5 +1,11 @@ @mixin glyph($unicode) { - &:before { content: $unicode; } + &:before { + content: $unicode; + } +} + +[class*="icon-"] { + @extend .ui-symbol; } .ui-symbol, @@ -8,6 +14,11 @@ &.context-available { @include glyph('\e902'); } } +.icon-pencil { @include glyph('\e1024'); } +.icon-new-window { @include glyph('\e1021'); } +.icon-fullscreen-collapse { @include glyph('\e1012'); } +.icon-fullscreen-expand { @include glyph('\e1013'); } + /*************************************** MENUS */ .icon-menu ul li { &.i-layers-move-to-top { @include glyph('\e905'); } diff --git a/platform/commonUI/general/res/sass/_icons.scss b/platform/commonUI/general/res/sass/_icons.scss index f27e9c15bd..3a2622327c 100644 --- a/platform/commonUI/general/res/sass/_icons.scss +++ b/platform/commonUI/general/res/sass/_icons.scss @@ -33,24 +33,26 @@ &.type-icon { color: $colorObjHdrIc; } - &.icon { - color: $colorKey; - font-size: inherit; - &.alert { - color: $colorAlert; - &:hover { - color: lighten($colorAlert, $ltGamma); - } - } - &.major { - font-size: 1.65em; - } - } &.icon-calendar:after { content: "\e605"; } } +[class^="i-"], +.ui-symbol.icon { + color: $colorKey; + font-size: inherit; + &.alert { + color: $colorAlert; + &:hover { + color: lighten($colorAlert, $ltGamma); + } + } + &.major { + font-size: 1.65em; + } +} + .bar .ui-symbol { display: inline-block; } diff --git a/platform/commonUI/general/res/sass/controls/_buttons.scss b/platform/commonUI/general/res/sass/controls/_buttons.scss index 24507eea98..21262a1a6a 100644 --- a/platform/commonUI/general/res/sass/controls/_buttons.scss +++ b/platform/commonUI/general/res/sass/controls/_buttons.scss @@ -121,6 +121,7 @@ $pad: $interiorMargin * $baseRatio; @extend .ui-symbol; content: '\e901'; color: $colorKey; + margin-right: $interiorMargin; } &:hover:before { color: pullForward($c, 10%); diff --git a/platform/commonUI/general/res/templates/controls/action-button.html b/platform/commonUI/general/res/templates/controls/action-button.html index 3697ba2b25..be279549f2 100644 --- a/platform/commonUI/general/res/templates/controls/action-button.html +++ b/platform/commonUI/general/res/templates/controls/action-button.html @@ -19,13 +19,13 @@ this source code distribution or the Licensing information page available at runtime from the About dialog for additional information. --> - - + {{parameters.action.getMetadata().name}} diff --git a/platform/forms/res/templates/controls/button.html b/platform/forms/res/templates/controls/button.html index cf97f42021..3173f1f75c 100644 --- a/platform/forms/res/templates/controls/button.html +++ b/platform/forms/res/templates/controls/button.html @@ -22,9 +22,9 @@ - + {{structure.text}}