forked from eudaimon/pho-earth-adaptive
Created a script to ease the selection of current color theme, plus improved earth-by-night
This commit is contained in:
parent
4388001082
commit
176d92a480
|
@ -0,0 +1,51 @@
|
|||
#! /bin/bash
|
||||
|
||||
THEMES_DIR=color_themes
|
||||
CSS_LINK_NAME=theme_colors.css
|
||||
|
||||
maxParams=1
|
||||
|
||||
usage() {
|
||||
|
||||
echo -e "Usage: $(basename "$0") [color_theme_to_activate.css]\n" >&2
|
||||
echo -e "Activates a color theme\nIf you don't specify one in the command, it will show all possible themes and let you select one'" >&2
|
||||
}
|
||||
|
||||
|
||||
if [ $# -gt $maxParams ]
|
||||
then
|
||||
echo -e "\nError: Incorrect usage." >&2
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# if we have one parameter, let this be aour destination file
|
||||
if [ $# -eq 1 ]
|
||||
then
|
||||
destFile=$1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ -z $destFile ]
|
||||
then
|
||||
echo -e "\nList of themes to chose from:\n"
|
||||
ls $THEMES_DIR
|
||||
echo -e "\nPlease write the name of the theme to use (full name with extension): "
|
||||
read destFile
|
||||
fi
|
||||
|
||||
|
||||
if [[ ! -f $THEMES_DIR/$destFile ]]
|
||||
then
|
||||
echo -e "Error: specified theme does not exist."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
#remove link if it exists:
|
||||
[[ -f $CSS_LINK_NAME ]] && rm $CSS_LINK_NAME
|
||||
|
||||
ln -s $THEMES_DIR/$destFile $CSS_LINK_NAME
|
||||
|
||||
echo -e "\nSuccessfully created $CSS_LINK_NAME linking to $THEMES_DIR/$destFile\n\n"
|
|
@ -1,17 +1,17 @@
|
|||
@define-color window_fg #cccccc;
|
||||
@define-color window_bg #6f7569;
|
||||
@define-color text_widget_fg #cccccc;
|
||||
@define-color text_widget_bg #595d55;
|
||||
@define-color window_fg #ccc;
|
||||
@define-color window_bg #3f3e3e;
|
||||
@define-color text_widget_fg #bbb;
|
||||
@define-color text_widget_bg #2d2c2c;
|
||||
|
||||
@define-color button_fg @text_widget_fg;
|
||||
@define-color button_bg #4f6665;
|
||||
@define-color button_pushed_fg @button_fg;
|
||||
@define-color button_pushed_bg mix(button_bg, @selected_bg, 0.5);
|
||||
@define-color button_bg #4F6665;
|
||||
@define-color button_pushed_fg mix(@button_fg, @selected_fg, 0.5);
|
||||
@define-color button_pushed_bg mix(@button_bg, @selected_bg, 0.5);
|
||||
|
||||
@define-color border_color black;
|
||||
|
||||
@define-color disabled_fg #9c4726;
|
||||
@define-color disabled_bg #603b2c;
|
||||
@define-color disabled_fg #a14242;
|
||||
@define-color disabled_bg #421b1b;
|
||||
|
||||
@define-color selected_fg #b5f08f;
|
||||
@define-color selected_bg #669900;
|
||||
|
|
|
@ -616,9 +616,9 @@ button, button.flat:hover, button.flat:focus {
|
|||
inset 0px -1px 1px alpha(black, 0.85),
|
||||
0px 3px 3px -2px alpha(black, 0.6) ;*/
|
||||
box-shadow:
|
||||
inset 0 0 0 1px black,
|
||||
inset 0px 2px 2px 0 alpha(@highlight_color, 0.7),
|
||||
inset 0px -2px 2px 0px alpha(black, 0.85);
|
||||
inset 0px -2px 2px 0px alpha(black, 0.85),
|
||||
inset 0 0 0 1px black;
|
||||
background-color: @button_bg_color;
|
||||
}
|
||||
notebook > header > tabs > arrow, button.sidebar-button, button.titlebutton,
|
||||
|
|
Loading…
Reference in New Issue