Skip to content

Commit

Permalink
Merge pull request #386 from w33ble/icons
Browse files Browse the repository at this point in the history
Vis and Toolbar Icons
  • Loading branch information
w33ble committed Sep 25, 2014
2 parents 374e3f5 + a1b9941 commit 2135b44
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"elasticsearch": "*",
"Faker": "~1.1.0",
"FileSaver": "*",
"font-awesome": "~4.0.3",
"font-awesome": "~4.2.0",
"gridster": "~0.5.0",
"inflection": "~1.3.5",
"jquery": "~2.1.0",
Expand Down
8 changes: 4 additions & 4 deletions src/kibana/apps/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
</form>

<div class="button-group">
<button ng-click="newDashboard()"><i class="fa fa-file-o"></i></button>
<button ng-click="openAdd()"><i class="fa fa-plus"></i></button>
<button ng-click="newDashboard()"><i class="fa fa-file-new-o"></i></button>
<button ng-click="openSave()"><i class="fa fa-save"></i></button>
<button ng-click="openLoad()"><i class="fa fa-folder-open"></i></button>
<button ng-click="openShare()"><i class="fa fa-code"></i></button>
<button ng-click="openLoad()"><i class="fa fa-folder-open-o"></i></button>
<button ng-click="openShare()"><i class="fa fa-external-link"></i></button>
<button ng-click="openAdd()"><i class="fa fa-plus-circle"></i></button>
</div>
</navbar>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions src/kibana/apps/discover/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
</form>

<div class="button-group">
<button ng-click="newQuery()"><i class="fa fa-file-o"></i></button>
<button ng-click="newQuery()"><i class="fa fa-file-new-o"></i></button>
<button ng-click="toggleSave()"><i class="fa fa-save"></i></button>
<button ng-click="toggleLoad()"><i class="fa fa-folder-open"></i></button>
<button ng-click="toggleLoad()"><i class="fa fa-folder-open-o"></i></button>
<button ng-click="toggleConfig()"><i class="fa fa-gear"></i></button>
</div>
</navbar>
Expand Down
6 changes: 3 additions & 3 deletions src/kibana/apps/visualize/editor/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>

<div class="button-group">
<button ng-click="startOver()"><i class="fa fa-file-o"></i></button>
<button ng-click="startOver()"><i class="fa fa-file-new-o"></i></button>

<!-- normal save -->
<button ng-if="!editableVis.dirty" ng-click="toggleSave()">
Expand All @@ -56,8 +56,8 @@
<i class="fa fa-save"></i>
</button>

<button ng-click="toggleLoad()"><i class="fa fa-folder-open"></i></button>
<button ng-click="toggleShare()"><i class="fa fa-code"></i></button>
<button ng-click="toggleLoad()"><i class="fa fa-folder-open-o"></i></button>
<button ng-click="toggleShare()"><i class="fa fa-external-link"></i></button>
<button ng-click="fetch()"><i class="fa fa-refresh"></i></button>
</div>
</navbar>
Expand Down
4 changes: 4 additions & 0 deletions src/kibana/apps/visualize/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
}
}

.visualizations .visualization i {
margin-right: @padding-base-horizontal;
}

@import "../editor/editor.less";
6 changes: 3 additions & 3 deletions src/kibana/apps/visualize/wizard/step_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ <h1>
<span class="pull-right label label-default">Step 2</span>
</h1>

<ul class="list-group list-group-menu">
<a class="list-group-item list-group-menu-item"
<ul class="visualizations list-group list-group-menu">
<a class="visualization list-group-item list-group-menu-item"
ng-repeat="type in visTypes"
ng-href="{{ visTypeUrl(type) }}">
<li>
<i ng-class="type.icon"></i>{{type.title}}
<i class="fa" ng-class="type.icon"></i>{{type.title}}
</li>
</a>
</ul>
2 changes: 1 addition & 1 deletion src/kibana/components/vis_types/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define(function (require) {
return new VisType({
name: 'histogram',
title: 'Vertical bar chart',
icon: 'icon-chart-bar',
icon: 'fa-bar-chart',
vislibParams: {
shareYAxis: true,
addTooltip: true,
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/components/vis_types/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define(function (require) {
return new VisType({
name: 'line',
title: 'Line chart',
icon: 'icon-chart-bar',
icon: 'fa-line-chart',
vislibParams: {
shareYAxis: true,
addTooltip: true,
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/components/vis_types/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define(function (require) {
return new VisType({
name: 'pie',
title: 'Pie chart',
icon: 'icon-chart-bar',
icon: 'fa-pie-chart',
vislibParams: {
addEvents: true,
addTooltip: true,
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/partials/saved_object_finder.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
ng-href="{{ makeUrl(hit) }}"
ng-click="onChoose(hit, $event)">
<li>
<i ng-class="hit.icon"></i> {{hit.title}}
<i class="fa" ng-if="hit.icon" ng-class="hit.icon"></i> {{hit.title}}
<p ng-if="hit.description" ng-bind="hit.description"></p>
</li>
</a>
Expand Down
5 changes: 5 additions & 0 deletions src/kibana/styles/_font_icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// shims for font-awesome

// new file icon
.@{fa-css-prefix}-file-new-o:before { content: @fa-var-file-o; }
.@{fa-css-prefix}-file-new-o:after { content: @fa-var-plus; position: relative; margin-left: -1.0em; font-size: 0.5em; }
3 changes: 2 additions & 1 deletion src/kibana/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
// call outs
@import "./_callout.less";

// call outs
// font icons
@import "./icon_font.css";
@import "./_font_icons.less";

// FontAwesome fills for glyphicons in bootstrap components
@import "./_glyphicons.less";
Expand Down

0 comments on commit 2135b44

Please sign in to comment.