forked from akveo/blur-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(colorScheme): move colors to config provider
- Loading branch information
1 parent
767189b
commit d2f8c1a
Showing
26 changed files
with
167 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Created by k.danovsky on 13.05.2016. | ||
*/ | ||
|
||
(function () { | ||
'use strict'; | ||
|
||
angular.module('BlurAdmin.theme') | ||
.config(config); | ||
|
||
/** @ngInject */ | ||
function config(baConfigProvider, colorHelper) { | ||
baConfigProvider.theme.blur = false; | ||
|
||
var colors = baConfigProvider.colors; | ||
colors.default = '#ffffff'; | ||
colors.defaultText = '#666666'; | ||
colors.dashboard.white = '#10c4b5'; | ||
colors.dashboard.whiteDark = colorHelper.shade(colors.dashboard.white, 5); | ||
|
||
console.log(baConfigProvider); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** | ||
* Created by k.danovsky on 13.05.2016. | ||
*/ | ||
|
||
(function () { | ||
'use strict'; | ||
|
||
var basic = { | ||
default: 'rgba(#000000, 0.2)', | ||
defaultText: '#ffffff', | ||
border: '#dddddd', | ||
borderDark: '#aaaaaa', | ||
}; | ||
|
||
// main functional color scheme | ||
var colorScheme = { | ||
primary: '#209e91', | ||
info: '#2dacd1', | ||
success: '#90b900', | ||
warning: '#dfb81c', | ||
danger: '#e85656', | ||
}; | ||
|
||
// dashboard colors for charts | ||
var dashboardColors = { | ||
blueStone: '#005562', | ||
surfieGreen: '#0e8174', | ||
silverTree: '#6eba8c', | ||
gossip: '#b9f2a1', | ||
white: '#ffffff', | ||
}; | ||
|
||
angular.module('BlurAdmin.theme') | ||
.provider('baConfig', configProvider); | ||
|
||
/** @ngInject */ | ||
function configProvider(colorHelper) { | ||
var conf = { | ||
theme: { | ||
blur: true, | ||
}, | ||
colors: { | ||
default: basic.default, | ||
defaultText: basic.defaultText, | ||
border: basic.border, | ||
borderDark: basic.borderDark, | ||
|
||
primary: colorScheme.primary, | ||
info: colorScheme.info, | ||
success: colorScheme.success, | ||
warning: colorScheme.warning, | ||
danger: colorScheme.danger, | ||
|
||
primaryLight: colorHelper.tint(colorScheme.primary, 30), | ||
infoLight: colorHelper.tint(colorScheme.info, 30), | ||
successLight: colorHelper.tint(colorScheme.success, 30), | ||
warningLight: colorHelper.tint(colorScheme.warning, 30), | ||
dangerLight: colorHelper.tint(colorScheme.danger, 30), | ||
|
||
primaryDark: colorHelper.shade(colorScheme.primary, 15), | ||
infoDark: colorHelper.shade(colorScheme.info, 15), | ||
successDark: colorHelper.shade(colorScheme.success, 15), | ||
warningDark: colorHelper.shade(colorScheme.warning, 15), | ||
dangerDark: colorHelper.shade(colorScheme.danger, 15), | ||
|
||
dashboard: { | ||
blueStone: dashboardColors.blueStone, | ||
surfieGreen: dashboardColors.surfieGreen, | ||
silverTree: dashboardColors.silverTree, | ||
gossip: dashboardColors.gossip, | ||
white: dashboardColors.white, | ||
|
||
blueStoneDark: colorHelper.shade(dashboardColors.blueStone, 15), | ||
surfieGreenDark: colorHelper.shade(dashboardColors.surfieGreen, 15), | ||
silverTreeDark: colorHelper.shade(dashboardColors.silverTree, 15), | ||
gossipDark: colorHelper.shade(dashboardColors.gossip, 15), | ||
whiteDark: colorHelper.shade(dashboardColors.white, 5), | ||
}, | ||
} | ||
}; | ||
conf.$get = function () { | ||
delete conf.$get; | ||
return conf; | ||
}; | ||
return conf; | ||
} | ||
})(); |
Oops, something went wrong.