Skip to content

Commit

Permalink
Updated themes, added truegray theme
Browse files Browse the repository at this point in the history
  • Loading branch information
noccy80 committed Dec 27, 2016
1 parent e3cdc4b commit 0ca4b12
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ echo -n "Installing php-powerline:"
cp -R lib $INSTALL_DIR/
cp -R bin $INSTALL_DIR/
cp powerline.sh $INSTALL_DIR/
cp powerline.fish $INSTALL_DIR/
echo " Done"

echo -n "Installing modules:"
Expand Down Expand Up @@ -60,5 +61,3 @@ if [ $? != 0 ]; then
fi

$INSTALL_DIR/bin/phpl-reload --all

echo "Reload your terminal or source $INSTALL_DIR/powerline.sh to activate phpl"
7 changes: 5 additions & 2 deletions lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
$_SOURCE = null;
$_OPTIONS = [
// option nane, value, default value, description
"term.colormode" => [ 0, VarType::enum(0,[0,1,2]), "Terminal color mode: 0=16 color, 1=256 color mode and 2=true color mode" ],
"term.forceutf8" => [ false, VarType::bool(false), "If true, always output UTF-8 even if running on a console" ],
"term.colormode" => [ 0, VarType::enum(0,[0,1,2]), "Terminal color mode: 0=16 color, 1=256 color mode and 2=true color mode" ],
"term.forceutf8" => [ false, VarType::bool(false), "If true, always output UTF-8 even if running on a console" ],
"cache.enable" => [ false, VarType::bool(false), "Experimental: Controls whether module output can be cached" ],
"cache.ttl" => [ 15, VarType::int(15), "Experimental: Maximum time a module can be cached in seconds" ],
"daemon.enable" => [ false, VarType::bool(false), "Experimental: Use a resident daemon to serve up the prompts "],
];

function config_read() {
Expand Down
3 changes: 2 additions & 1 deletion themes/classic.theme
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ $source(user.icons)
}

$icon(git.branch,#)
$icon(git.tag,@)
$icon(git.need_pull,<)
$icon(git.need_push,>)
$icon(git.is_changed,~)
$icon(git.is_changed,+)
$icon(git.is_current,)

$icon(loadavg.load,)
Expand Down
36 changes: 36 additions & 0 deletions themes/truegray.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$source(user.icons)

$set(white,#FFFFFF)
$set(gray4,#CCCCCC)
$set(gray3,#AAAAAA)
$set(gray2,#888888)
$set(gray1,#666666)
$set(black,#222222);

* {
color: black;
background: %gray3;
pad-before: 1;
pad-after: 1;
}
path {
background: %gray4;
color: black;
}
.system {
background: %gray2;
}
.vcs {
background: %gray3;
color: black;
}
.info {
background: %gray2;
}
:good {
color: gray;
}
:bad {
color: red;
}

0 comments on commit 0ca4b12

Please sign in to comment.