Context menu icons

This commit is contained in:
James Barnsley
2018-05-19 11:15:10 +12:00
parent 17a1169fd2
commit 8bdb49b3d5
11 changed files with 25403 additions and 23489 deletions

View File

@ -3425,12 +3425,11 @@ input[type="submit"] {
background: #000000; background: #000000;
color: #FFFFFF; } color: #FFFFFF; }
#context-menu .liner .menu-item-wrapper .icon { #context-menu .liner .menu-item-wrapper .icon {
display: none; } font-size: 12px; }
#context-menu .liner .menu-item-wrapper .submenu-icon { #context-menu .liner .menu-item-wrapper .icon.submenu-icon {
display: inline-block;
float: right; float: right;
padding-top: 4px; } padding-top: 4px; }
#context-menu .liner .menu-item-wrapper .fa {
font-size: 10px; }
#context-menu .liner .menu-item-wrapper .submenu { #context-menu .liner .menu-item-wrapper .submenu {
-webkit-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out;
@ -3452,6 +3451,9 @@ input[type="submit"] {
#context-menu .liner .menu-item-wrapper .submenu.expanded { #context-menu .liner .menu-item-wrapper .submenu.expanded {
width: 100%; width: 100%;
left: 0; } left: 0; }
#context-menu .liner .menu-item-wrapper .submenu .label .icon {
margin-bottom: 0.4em;
padding-right: 6px; }
#context-menu .liner .menu-item-wrapper .submenu .menu-item { #context-menu .liner .menu-item-wrapper .submenu .menu-item {
width: 100%; } width: 100%; }
#context-menu .liner .menu-item-wrapper .submenu .menu-item.close-submenu { #context-menu .liner .menu-item-wrapper .submenu .menu-item.close-submenu {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
// Release details // Release details
// These are automatically injected to built HTML // These are automatically injected to built HTML
var build = "1526459564"; var build = "1526612738";
var version = "3.18.0"; var version = "3.18.0";
// Construct the script tag // Construct the script tag

View File

@ -3,7 +3,9 @@ import React, { PropTypes } from 'react'
import { Link, hashHistory } from 'react-router' import { Link, hashHistory } from 'react-router'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import { bindActionCreators } from 'redux' import { bindActionCreators } from 'redux'
import FontAwesome from 'react-fontawesome'
import TrackList from './TrackList'
import Icon from './Icon'
import * as helpers from '../helpers' import * as helpers from '../helpers'
import * as coreActions from '../services/core/actions' import * as coreActions from '../services/core/actions'
@ -12,7 +14,6 @@ import * as pusherActions from '../services/pusher/actions'
import * as mopidyActions from '../services/mopidy/actions' import * as mopidyActions from '../services/mopidy/actions'
import * as lastfmActions from '../services/lastfm/actions' import * as lastfmActions from '../services/lastfm/actions'
import * as spotifyActions from '../services/spotify/actions' import * as spotifyActions from '../services/spotify/actions'
import TrackList from './TrackList'
class ContextMenu extends React.Component{ class ContextMenu extends React.Component{
@ -353,9 +354,7 @@ class ContextMenu extends React.Component{
<span className="menu-item-wrapper"> <span className="menu-item-wrapper">
<a className="menu-item close-submenu" onClick={e => this.setState({submenu_expanded: false})}> <a className="menu-item close-submenu" onClick={e => this.setState({submenu_expanded: false})}>
<span className="label"> <span className="label">
<FontAwesome name='caret-left' /> <Icon name="arrow_back" />Back
&nbsp;&nbsp;
Back
</span> </span>
</a> </a>
</span> </span>
@ -491,7 +490,7 @@ class ContextMenu extends React.Component{
<span className="menu-item-wrapper has-submenu"> <span className="menu-item-wrapper has-submenu">
<a className="menu-item" onClick={e => this.setPlaylistSubmenu()}> <a className="menu-item" onClick={e => this.setPlaylistSubmenu()}>
<span className="label">Add to playlist</span> <span className="label">Add to playlist</span>
<FontAwesome className="submenu-icon" name='caret-right' /> <Icon className="submenu-icon" name="arrow_forward" />
</a> </a>
{this.renderPlaylistSubmenu()} {this.renderPlaylistSubmenu()}
</span> </span>

View File

@ -91,8 +91,8 @@ class Sidebar extends React.Component{
<Link className={this.linkClassName('settings')} to={global.baseURL+"settings"}> <Link className={this.linkClassName('settings')} to={global.baseURL+"settings"}>
<Icon name="settings" type="material" /> <Icon name="settings" type="material" />
Settings Settings
{this.props.test_mode ? <span className="status has-tooltip right-tooltip"><FontAwesome name="info-circle" className="orange-text" /><span className="tooltip">Test mode active</span></span>: null} {this.props.test_mode ? <span className="status has-tooltip right-tooltip"><Icon name="info" className="orange-text" /><span className="tooltip">Test mode active</span></span>: null}
{!this.props.mopidy_connected || !this.props.pusher_connected ? <span className="status has-tooltip right-tooltip"><FontAwesome name="exclamation-triangle" className="red-text" /><span className="tooltip">{!this.props.mopidy_connected ? <span>Mopidy not connected<br /></span> : null}{!this.props.pusher_connected ? <span>Pusher not connected<br /></span> : null}</span></span> : null} {!this.props.mopidy_connected || !this.props.pusher_connected ? <span className="status has-tooltip right-tooltip"><Icon name="warning" className="red-text" /><span className="tooltip">{!this.props.mopidy_connected ? <span>Mopidy not connected<br /></span> : null}{!this.props.pusher_connected ? <span>Pusher not connected<br /></span> : null}</span></span> : null}
</Link> </Link>
</section> </section>

View File

@ -50,8 +50,7 @@ class Debug extends React.Component{
var options = ( var options = (
<span> <span>
<button className="no-hover" onClick={e => hashHistory.push(global.baseURL+'settings')}> <button className="no-hover" onClick={e => hashHistory.push(global.baseURL+'settings')}>
<Icon name="keyboard_backspace" />&nbsp; <Icon name="keyboard_backspace" />Back
Back
</button> </button>
</span> </span>
) )

View File

@ -340,11 +340,11 @@ class Search extends React.Component{
var options = ( var options = (
<span> <span>
<DropdownField <DropdownField
icon="filter_list" icon="sort"
name="Sort" name="Sort"
value={this.props.sort} value={this.props.sort}
options={sort_options} options={sort_options}
selected_icon={this.props.sort_reverse ? 'caret-up' : 'caret-down'} selected_icon={this.props.sort_reverse ? 'keyboard_arrow_up' : 'keyboard_arrow_down'}
handleChange={value => {this.setSort(value); this.props.uiActions.hideContextMenu()}} handleChange={value => {this.setSort(value); this.props.uiActions.hideContextMenu()}}
/> />
<DropdownField <DropdownField

View File

@ -132,13 +132,10 @@ class Settings extends React.Component {
var options = ( var options = (
<span> <span>
<button className="no-hover" onClick={e => hashHistory.push(global.baseURL+'settings/debug')}> <button className="no-hover" onClick={e => hashHistory.push(global.baseURL+'settings/debug')}>
<Icon name="code" />&nbsp; <Icon name="code" />Debug
Debug
{this.props.ui && this.props.ui.test_mode ? <span className="flag warning">Test mode</span> : null}
</button> </button>
<a className="no-hover button" href="https://github.com/jaedb/Iris/wiki" target="_blank"> <a className="no-hover button" href="https://github.com/jaedb/Iris/wiki" target="_blank">
<Icon name="help" />&nbsp; <Icon name="help" />Help
Help
</a> </a>
</span> </span>
) )

View File

@ -98,16 +98,13 @@
} }
.icon { .icon {
display: none; font-size: 12px;
}
.submenu-icon { &.submenu-icon {
display: inline-block;
float: right; float: right;
padding-top: 4px; padding-top: 4px;
} }
.fa {
font-size: 10px;
} }
.submenu { .submenu {
@ -131,6 +128,13 @@
left: 0; left: 0;
} }
.label {
.icon {
margin-bottom: 0.4em;
padding-right: 6px;
}
}
.menu-item { .menu-item {
width: 100%; width: 100%;

View File

@ -177,7 +177,7 @@ $icon-websocket: \e920;
@font-face { @font-face {
font-family: 'Material Icons'; font-family: 'Material Icons';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;;
src: url(../assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ src: url(../assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'), src: local('Material Icons'),
local('MaterialIcons-Regular'), local('MaterialIcons-Regular'),