Skip to content

Commit

Permalink
grunting
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhortle committed Jan 4, 2014
1 parent 4adc181 commit 6b7e4c8
Show file tree
Hide file tree
Showing 19 changed files with 1,103 additions and 38 deletions.
58 changes: 29 additions & 29 deletions Centurion.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
// Regex search button
{
"class": "icon_regex",
"layer0.texture": "Theme - Centurion/Centurion/asterisk.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/asterisk.png",
"layer0.opacity": 0.5,
"content_margin": 9

Expand All @@ -105,7 +105,7 @@
// Case sensitive search button
{
"class": "icon_case",
"layer0.texture": "Theme - Centurion/Centurion/capital.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/capital.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -117,7 +117,7 @@
// Match whole word search button
{
"class": "icon_whole_word",
"layer0.texture": "Theme - Centurion/Centurion/quotes.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/quotes.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -134,7 +134,7 @@
// Show search context button
{
"class": "icon_context",
"layer0.texture": "Theme - Centurion/Centurion/selection.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/selection.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -146,7 +146,7 @@
// Use search buffer
{
"class": "icon_use_buffer",
"layer0.texture": "Theme - Centurion/Centurion/page.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/page.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -163,7 +163,7 @@
// Reverse search direction button (ST2 only)
{
"class": "icon_reverse",
"layer0.texture": "Theme - Centurion/Centurion/reverse.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/reverse.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -175,7 +175,7 @@
// Search wrap button
{
"class": "icon_wrap",
"layer0.texture": "Theme - Centurion/Centurion/wrap.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/wrap.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -187,7 +187,7 @@
// Search in selection button
{
"class": "icon_in_selection",
"layer0.texture": "Theme - Centurion/Centurion/selection.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/selection.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -204,7 +204,7 @@
// Preserve case button
{
"class": "icon_preserve_case",
"layer0.texture": "Theme - Centurion/Centurion/capital.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/capital.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand All @@ -221,7 +221,7 @@
// Highlight results button
{
"class": "icon_highlight",
"layer0.texture": "Theme - Centurion/Centurion/highlight.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/highlight.png",
"layer0.opacity": 0.5,
"content_margin": 9
},
Expand Down Expand Up @@ -272,7 +272,7 @@

{
"class": "fold_button_control",
"layer0.texture": "Theme - Centurion/Centurion/arrow.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/arrow.png",
"layer0.opacity": 0.4,
"layer0.inner_margin": 0,
"content_margin": [8,8]
Expand All @@ -285,7 +285,7 @@
{
"class": "fold_button_control",
"attributes": ["expanded"],
"layer0.texture": "Theme - Centurion/Centurion/arrow-down.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/arrow-down.png"
},
{
"class": "fold_button_control",
Expand Down Expand Up @@ -585,39 +585,39 @@
"class": "close_button",
"parents": [{"class": "tree_row","attributes": ["hover"]}],
"layer0.opacity": 1,
"layer0.texture": "Theme - Centurion/Centurion/cross.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png"
},
// Sidebar file dirty
{
"class": "close_button",
"attributes": ["dirty"],
"layer0.texture": "Theme - Centurion/Centurion/circle.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/circle.png",
"layer0.opacity": 1,
"layer0.tint": [90,138,165]
},
{
"class": "close_button",
"attributes": ["dirty"],
"parents": [{"class": "tree_row","attributes": ["selected"]}],
"layer0.texture": "Theme - Centurion/Centurion/cross.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png"
},
{
"class": "close_button",
"attributes": ["dirty"],
"parents": [{"class": "tree_row","attributes": ["hover"]}],
"layer0.texture": "Theme - Centurion/Centurion/cross.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png",
"layer0.opacity": 1
},
// Sidebar file close hover
{
"class": "close_button",
"attributes": ["hover"],
"layer0.texture": "Theme - Centurion/Centurion/cross.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png"
},
{
"class": "close_button",
"parents": [{"class": "tree_row","attributes": ["hover","selected"]}],
"layer0.texture": "Theme - Centurion/Centurion/cross.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png",
"layer0.opacity": 1
},

Expand All @@ -629,7 +629,7 @@
{
"class": "disclosure_button_control",
"content_margin": [8,8],
"layer0.texture": "Theme - Centurion/Centurion/folder-closed.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-closed.png",
"layer0.tint": [96,172,123],
"layer0.opacity": 1,
"layer0.inner_margin": 0
Expand All @@ -647,7 +647,7 @@
{
"class": "disclosure_button_control",
"settings": ["soda_folder_icons"],
"layer0.texture": "Theme - Centurion/Centurion/folder-closed.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-closed.png"
},
{
"class": "disclosure_button_control",
Expand All @@ -658,13 +658,13 @@
"class": "disclosure_button_control",
"settings": ["soda_folder_icons"],
"parents": [{"class": "tree_row","attributes": ["selected"]}],
"layer0.texture": "Theme - Centurion/Centurion/folder-closed.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-closed.png"
},
// Sidebar group open
{
"class": "disclosure_button_control",
"attributes": ["expanded"],
"layer0.texture": "Theme - Centurion/Centurion/folder-open.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-open.png"
},
{
"class": "disclosure_button_control",
Expand All @@ -675,28 +675,28 @@
"class": "disclosure_button_control",
"attributes": ["expanded"],
"parents": [{"class": "tree_row","attributes": ["selected"]}],
"layer0.texture": "Theme - Centurion/Centurion/folder-open.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-open.png"
},
// Sidebar folder open
{
"class": "disclosure_button_control",
"settings": ["soda_folder_icons"],
"attributes": ["expanded"],
"layer0.texture": "Theme - Centurion/Centurion/folder-open.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-open.png"
},
{
"class": "disclosure_button_control",
"settings": ["soda_folder_icons"],
"attributes": ["expanded"],
"parents": [{"class": "tree_row","attributes": ["hover"]}],
"layer0.texture": "Theme - Centurion/Centurion/folder-open.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-open.png"
},
{
"class": "disclosure_button_control",
"settings": ["soda_folder_icons"],
"attributes": ["expanded"],
"parents": [{"class": "tree_row","attributes": ["selected"]}],
"layer0.texture": "Theme - Centurion/Centurion/folder-open.png"
"layer0.texture": "Theme - Centurion_dev/Centurion/folder-open.png"
},
//
// STATUS BAR
Expand Down Expand Up @@ -729,7 +729,7 @@
// Tab close button
{
"class": "tab_close_button",
"layer0.texture": "Theme - Centurion/Centurion/cross.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png",
"layer0.opacity": 0,
"layer0.tint": [255,255,255]
},
Expand All @@ -755,7 +755,7 @@
{
"class": "tab_close_button",
"parents": [{"class": "tab_control","attributes": ["dirty"]}],
"layer0.texture": "Theme - Centurion/Centurion/circle.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/circle.png",
"layer0.tint": [90,138,165],
"layer0.opacity": 1
},
Expand All @@ -769,7 +769,7 @@
{
"class": "tab_close_button",
"parents": [{"class": "tab_control","attributes": ["dirty","hover"]}],
"layer0.texture": "Theme - Centurion/Centurion/cross.png",
"layer0.texture": "Theme - Centurion_dev/Centurion/cross.png",
"layer0.opacity": 1
},
{
Expand Down
2 changes: 1 addition & 1 deletion Centurion/Widget - Centurion.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"color_scheme": "Packages/Theme - Centurion/Centurion/Widget - Centurion.stTheme"
"color_scheme": "Packages/Theme - Centurion_dev/Centurion/Widget - Centurion.stTheme"
}
Binary file added Galea.tmTheme.cache
Binary file not shown.
52 changes: 44 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,62 @@

/*
|--------------------------------------------------------------------------
| Centurion Grunt File
|--------------------------------------------------------------------------
|
| If you would like to edit the color of your Centurion file just change
| the color of 'config.hero'. There are some predefined colors here
| already but feel free to just throw your own one in.
|
*/

module.exports = function(grunt) {
// Load tasks
require('load-grunt-tasks')(grunt);

var config = {

// Colors
// Colors used in the theme
green:[96,172,123],
blue:[90, 138, 165],
red:[190, 90, 78],

// Extra colors from Galea
yellow:[218, 174, 105],
orange:[225, 134, 84],
red:[190, 90, 78],

// Paths
/*
|--------------------------------------------------------------------------
| Theme Folder Name
|--------------------------------------------------------------------------
|
| If you clone centurion into a separate folder, just change this variable
| to match. Sublime text requires a few hard-coded file paths. If this
| doesn't match you won't get icons and your text boxes will go white.
|
*/

folderName:'Theme - Centurion'

}


/*
|--------------------------------------------------------------------------
| SET THE THEME COLOR HERE!
|--------------------------------------------------------------------------
*/

config.hero = config.green;



/*
|--------------------------------------------------------------------------
| Don't worry about below here. Just the Grunt Stuff
|--------------------------------------------------------------------------
*/

// Color Functions
var colorChange = function(arr, value){
var a = arr.slice();
Expand All @@ -26,15 +66,12 @@ module.exports = function(grunt) {
return a;
}

// Set theme Color here
config.hero = config.green;

//Define Color variations
config.heroDarker1 = colorChange(config.hero,-32);
config.heroDarker2 = colorChange(config.hero,-64);
config.heroLighter1 = colorChange(config.hero,32);

// Project configuration.
// Grunt Config
grunt.initConfig({
concat: {
options: {
Expand Down Expand Up @@ -78,7 +115,6 @@ module.exports = function(grunt) {
},
});

// Default task.
grunt.registerTask('default', [
'concat',
'string-replace'
Expand Down
4 changes: 4 additions & 0 deletions messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"install": "messages/2.0.0.txt"
"2.0.0": "messages/2.0.0.txt"
}
33 changes: 33 additions & 0 deletions messages/2.0.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Centurion V2
============

* Custom Colors
* Galea Color Theme
* Grunt!



Colors & Grunt!
===============

I've re-written Centurion to use Grunt. As a result you can now make your own
custom colored versions of the theme. You can check out the repo for instructions.
If you haven't used grunt before go check it out. It's not hard and it's super useful.

http://gruntjs.com/
https://github.com/allanhortle/Centurion



Galea Color Scheme
==================

I've also written an included a color theme called Galea. It's a simple color scheme designed to cut down on the use of colors in conflicting locations. There are only five colors and each relates to a high level Textmate scope.

Yellow: Entity / Tag
Red: Support / Keyword
Orange: Storage
Green: String
Blue: Constant

Additionally each file's background is tinted to distinguish it's type. Front-end remains grey, back-end is blue and data-files are green.
Binary file added res/Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"color_scheme": "Packages/{{folderName}}/Centurion/Widget - Centurion.stTheme"
}
Loading

0 comments on commit 6b7e4c8

Please sign in to comment.