Commit Graph

25 Commits (25510ef7ad38d49c7ec95f277a5d8d663cee4a48)

Author SHA1 Message Date
romkatv 5ee0054298 don't read configuration options until the first precmd; plus massive refactoring and cleanup 6 years ago
Dominik Ritter 8e966e3636 Change bright colors to old color codes
Before this, there was no difference in that colors, as we always used
the bright color codes.
6 years ago
Dominik Ritter c7e543ff23 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter 424d41761d Write comparison with double quotes 6 years ago
Dominik Ritter 39fe5217c6 Pad colors with zeroes 6 years ago
Dominik Ritter 19235b2359 Always use color codes instead of named colors
This Code was to check if the color is supported by the Terminal
Emulator. This is not necessary, if we always use the numerical code.
This makes the code much clearer.
6 years ago
Dominik Ritter beacb0ad35 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 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 e35f7a0c48 Merge branch 'fix_colors' into prepare_066 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
Ythildir 5ce384fb31 Test more readable 7 years ago
Ythildir e39e024e74 Resolve #918 Transparent background
Now function getColorCode consider value 'none' like a good value.
When it's use to set background the segment become transparent
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