From 0ca4b125cd7ee1e98994d722498d93360d6c9778 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Tue, 27 Dec 2016 23:55:53 +0100 Subject: [PATCH] Updated themes, added truegray theme --- install.sh | 3 +-- lib/config.php | 7 +++++-- themes/classic.theme | 3 ++- themes/truegray.theme | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 themes/truegray.theme diff --git a/install.sh b/install.sh index 2678296..bac2658 100755 --- a/install.sh +++ b/install.sh @@ -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:" @@ -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" diff --git a/lib/config.php b/lib/config.php index af266c3..7c6b4e1 100644 --- a/lib/config.php +++ b/lib/config.php @@ -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() { diff --git a/themes/classic.theme b/themes/classic.theme index 005a952..5fbcd22 100644 --- a/themes/classic.theme +++ b/themes/classic.theme @@ -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,) diff --git a/themes/truegray.theme b/themes/truegray.theme new file mode 100644 index 0000000..4d322b7 --- /dev/null +++ b/themes/truegray.theme @@ -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; +} +