Merge branch 'ericbn-solarized' into develop

This commit is contained in:
antelle 2016-07-16 10:57:20 +03:00
commit 574bcd47e5
9 changed files with 36 additions and 4 deletions

View File

@ -307,6 +307,8 @@ var Locale = {
setGenThemeDb: 'Dark brown',
setGenThemeWh: 'White',
setGenThemeHc: 'High contrast',
setGenThemeSd: 'Solarized dark',
setGenThemeSl: 'Solarized light',
setGenFontSize: 'Font size',
setGenFontSizeNormal: 'Normal',
setGenFontSizeLarge: 'Large',

View File

@ -48,8 +48,10 @@ var SettingsGeneralView = Backbone.View.extend({
allThemes: {
fb: Locale.setGenThemeFb,
db: Locale.setGenThemeDb,
sd: Locale.setGenThemeSd,
sl: Locale.setGenThemeSl,
wh: Locale.setGenThemeWh,
hc: Locale.setGenThemeHc
hc: Locale.setGenThemeHc,
},
initialize: function() {

View File

@ -20,7 +20,11 @@ $violet: #d946db;
@function muted-color-border() { @return mix(medium-color(), background-color(), th(mute-percent) / 2); }
@function text-selection-bg-color() { @return rgba(action-color(), .3); }
@function text-selection-bg-color-error() { @return rgba(error-color(), .8); }
@function text-contrast-color($bg) { @if (lightness($bg) >= lightness(background-color())) { @return text-color(); } @else { @return background-color(); } }
@function text-contrast-color($bg) {
@if ($bg == background-color()) { @return text-color(); }
@if (lightness($bg) - th(color-lightness-shift) >= lightness(background-color())) { @return text-color(); }
@else { @return background-color(); }
}
// Borders, shadows
@function base-border-color() { @return mix(medium-color(), background-color(), 50%); }

View File

@ -182,7 +182,7 @@ input[type=checkbox] {
$thumb-size: 14px;
&input[type=range] {
input[type=range] {
-webkit-appearance: none;
width: 100%;
margin: 12px 0;

View File

@ -1,4 +1,4 @@
&.icon-select {
.icon-select {
&__items {
@include display(flex);
@include align-items(flex-start);

View File

@ -5,3 +5,5 @@ $themes: ();
@import "flat-blue";
@import "white";
@import "high-contrast";
@import "solarized-dark";
@import "solarized-light";

View File

@ -0,0 +1,11 @@
$themes: map-merge($themes, (
sd: map-merge($theme-defaults, (
background-color: #002B36,
medium-color: #93A1A1,
text-color: #839496,
action-color: #859900,
error-color: #DC322F,
mute-percent: 60%,
color-lightness-shift: 50%,
))
));

View File

@ -0,0 +1,10 @@
$themes: map-merge($themes, (
sl: map-merge($theme-defaults, (
background-color: #FDF6E3,
medium-color: #586E75,
text-color: #657B83,
action-color: #859900,
error-color: #DC322F,
mute-percent: 60%,
))
));

View File

@ -2,4 +2,5 @@ $theme-defaults: (
mute-percent: 30%,
light-border-percent: 10%,
modal-opacity: .9,
color-lightness-shift: 0,
)