Refresh icons, Add save icon, navigation icons

(closes #3777)
This commit is contained in:
Bryan Housel
2017-01-26 00:01:52 -05:00
parent 99594c19e6
commit 348b355e37
7 changed files with 59 additions and 30 deletions
+1 -2
View File
@@ -45,8 +45,7 @@ export function uiEntityEditor(context) {
enter
.append('button')
.attr('class', 'fl preset-reset preset-choose')
.append('span')
.html((textDirection === 'rtl') ? '►' : '◄');
.call(svgIcon((textDirection === 'rtl') ? '#icon-forward' : '#icon-backward'));
enter
.append('button')
+1 -2
View File
@@ -43,8 +43,7 @@ export function uiPresetList(context) {
.append('button')
.attr('class', 'preset-choose')
.on('click', function() { dispatch.call('choose', this, currentPreset); })
.append('span')
.html((textDirection === 'rtl') ? '◄' : '►');
.call(svgIcon((textDirection === 'rtl') ? '#icon-backward' : '#icon-forward'));
} else {
messagewrap
.append('button')
+3 -1
View File
@@ -2,6 +2,7 @@ import * as d3 from 'd3';
import { d3keybinding } from '../lib/d3.keybinding.js';
import { t } from '../util/locale';
import { modeSave } from '../modes/index';
import { svgIcon } from '../svg/index';
import { uiCmd } from './cmd';
import { uiTooltipHtml } from './tooltipHtml';
import { tooltip } from '../util/tooltip';
@@ -53,6 +54,7 @@ export function uiSave(context) {
.call(tooltipBehavior);
button
.call(svgIcon('#icon-save', 'pre-text'))
.append('span')
.attr('class', 'label')
.text(t('save.title'));
@@ -62,7 +64,7 @@ export function uiSave(context) {
.attr('class', 'count')
.text('0');
var keybinding = d3keybinding('undo-redo')
var keybinding = d3keybinding('save')
.on(key, save, true);
d3.select(document)