Dominik Ritter
0acede2fdc
Make colors a global array
...
That way it must not be defined in every function call.
6 years ago
Dominik Ritter
eadbd09368
Write comparisons with double equals
6 years ago
Dominik Ritter
9cf76f99a5
Fix bright colors
...
Remove old code that set bright colors equal to normal colors. This code
was ancient and led to bright colors being unusable. The code originates
from 0e37d8ef86
.
6 years ago
Dominik Ritter
ebbdb3c1c0
Make purpose clear of backgroundColor and foregroundColor functions
...
The functions just start the colors, they do not end them. It seems
too much to have a function that terminates a color.
6 years ago
Dominik Ritter
345cf87b8f
Add missing colors to fix color comparison
...
Added magenta and cyan that were only present with their alternative
names (fuchsia and aqua). See https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme
7 years ago
Dominik Ritter
9a895bc7e4
Make variables local
7 years ago
Tim Otlik
bba8bb883e
add check of /etc/os-release for linux distros
7 years ago
Ben Hilburn
fd3d234354
Merge pull request #681 from Stazer/tcolor-warning
...
Added flag to ignore checking the term colors & lang settings
7 years ago
Christian Höltje
87988cea26
getColor() must always print result
...
This was causing colors specified as numbers to not be shown.
7 years ago
Justus Flerlage
3a605c7f62
renamed POWERLEVEL9K_CHECK_TERM_COLORS to POWERLEVEL9K_IGNORE_TERM_COLORS
7 years ago
Justus Flerlage
4db2eb0e16
Added flag for checking the term colors
7 years ago
Charles Peterson
0c943ac6d5
colors checking optimized and added tput for check the colors
...
moved to colors functions, because it makes sense.
7 years ago
Charles Peterson
4d18fdc6e9
fix for colors since the terminals so not always render named colors when using parameter expansion.
7 years ago
Charles Peterson
264897a426
color names and fixes
...
- fix for packageName truncated by POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER
- processing the pwd/HOME replacement ONCE.
- fix tests for named colors
- use color names by default to allow dark/light themes to adjust colors based on names
7 years ago
Dominik Ritter
0fa635275c
Extracted color functions to a separate file.
9 years ago