History log of /haiku/src/apps/terminal/Colors.cpp
Revision Date Author Comments
# de2ada1f 09-Jul-2021 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Terminal: load themes from data and settings folders.

* Uses the same format as the Terminal settings file
* Adds an additional key, "Theme name", to settings for themes,
which needs to be present for a theme to be loaded, else it
will be skipped
* Loads themes from Terminal/Themes in the data and settings
directories, searching data first, then settings second,
allowing a theme to be tweaked by putting a copy in a
settings folder

Change-Id: I8cadf98151459c1ae6098c38481b16eb3f2cf952


# fe3e5f05 05-Nov-2021 Jérôme Duval <jerome.duval@gmail.com>

Terminal: accept more notations for colors

Change-Id: Iaf6008305de8ef0111f7006e36da507d40c8a47a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4688
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# fe3ac93c 07-Jul-2021 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Terminal: add support for per-theme custom ANSI colours.

* Updates the colour palette for Solarized
* Adds new colour palette, Relaxed (MIT License) [1]

[1]: https://github.com/Relaxed-Theme/relaxed-terminal-themes

Change-Id: Ia81120cd983b9c3b935f8a990867ee4b7c35b6d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4196
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>


# e998f2e4 18-May-2018 Murai Takashi <tmurai01@gmail.com>

Terminal: Fix -Werror=class-memaccess

Fix -Werror=class-memaccess pointed out by gcc8.
* Use TerminalLine::Clear() instead of memset()
* Use rgb_color::operator=() instead of memcpy()

Change-Id: I41360e245fd55c526d9c2802a2f247ba22583080
Reviewed-on: https://review.haiku-os.org/483
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# c3dfa1d9 01-Sep-2015 miqlas <zmizsei@extrowerk.com>

Solarized Dark and Light color scheme for Terminal

Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 5b41331f 09-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

CodeStyle fixes, some refactoring and cleanup

* Clear some codestyle issues catched by checker script;
* Rename RestartDebugCapture to more consistent StartStopDebugCapture;
* Updated Copyrights and authors lists, some occurences of the raw MIT
licence text replaced with "under the terms of MIT licence" reference;
* Fixes for x86_64 build.

This is cumulative cleanup commit for series of Terminal refactoring
changes I have introduced last time. No significant functional changes.


# 68ea9ce5 27-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

OSC and color management improoved

* Global kTermColorTable replaced with it's private copy for every
TermView instance. This allows to modify colors table for every view
separately;
* Set of ANSI normal/bright color entries added into preferences;
* Default color table generated dynamicaly using ANSI colors
preferences. 6x6x6 color cubes and grayscale ramp are generated in
xterm colors model;
* Improoved support of Operating System Command control sequences;
* Support for X11 rgb.txt compatible color names. Corresponding entries
are stored in hashed form in application resource and loaded only on
demand.


# 587caece 07-Dec-2012 John Scipione <jscipione@gmail.com>

Revert "Make Default color scheme match default settings..."

This reverts commit 72bf9c4e480784cde000b41982f3afb6f7d00e2a.

I fixed this the wrong way.


# d2091d88 06-Dec-2012 John Scipione <jscipione@gmail.com>

Change the cursor from white to yellow for blue theme

matching the text color. The white was a little off.


# 5ddf877b 06-Dec-2012 John Scipione <jscipione@gmail.com>

More style fixes, return true or false directly


# 72bf9c4e 06-Dec-2012 John Scipione <jscipione@gmail.com>

Make Default color scheme match default settings...

So that it gets selected, well, by default. Before Custom was
being selected initially.


# 715c56d4 06-Dec-2012 John Scipione <jscipione@gmail.com>

Style fixes only, no functional changes intended

including converting a while loop into a for loop.


# 2005db27 04-Dec-2012 John Scipione <jscipione@gmail.com>

Change schema in Terminal to color scheme.

Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.


# 7271621f 04-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

Terminal: Spice up terminal color scheme selection


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 9a39723c 29-Oct-2011 Joachim Seemer <humdingerb@googlemail.com>

Applied patch by Disreali, adding colour scheme green on black. Fixes #7977. Thanks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42989 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d7070812 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localize some forgotten strings spotted by diver.
Fix #6375.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7071dfc1 19-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style.
Add NULL guard to the color schemes struct, although the code was safe
neverthless (for now)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 72439e20 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Obviously, just checking for the text color isn't enough.
Also renamed colors to schema since it makes more sense


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37536 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80490c77 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Add a menufield to select color combinations, and add obvious
"white on black" and "black on white". For some reason these aren't
applied live, like when you chose a custom combo.
I'm not really fond of the code, and will rework it in the next few days.
But at least it works!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37535 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c3dfa1d9d029ecf62212ed675d885ebc69aa42ac 01-Sep-2015 miqlas <zmizsei@extrowerk.com>

Solarized Dark and Light color scheme for Terminal

Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 5b41331f1100c78541d87b7ad5a15d5652acb079 09-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

CodeStyle fixes, some refactoring and cleanup

* Clear some codestyle issues catched by checker script;
* Rename RestartDebugCapture to more consistent StartStopDebugCapture;
* Updated Copyrights and authors lists, some occurences of the raw MIT
licence text replaced with "under the terms of MIT licence" reference;
* Fixes for x86_64 build.

This is cumulative cleanup commit for series of Terminal refactoring
changes I have introduced last time. No significant functional changes.


# 68ea9ce5bbed50e08bf08a151477bbb0e1ac1227 27-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

OSC and color management improoved

* Global kTermColorTable replaced with it's private copy for every
TermView instance. This allows to modify colors table for every view
separately;
* Set of ANSI normal/bright color entries added into preferences;
* Default color table generated dynamicaly using ANSI colors
preferences. 6x6x6 color cubes and grayscale ramp are generated in
xterm colors model;
* Improoved support of Operating System Command control sequences;
* Support for X11 rgb.txt compatible color names. Corresponding entries
are stored in hashed form in application resource and loaded only on
demand.


# 587caece753c32f82382534c2f1ed28de4998601 07-Dec-2012 John Scipione <jscipione@gmail.com>

Revert "Make Default color scheme match default settings..."

This reverts commit 72bf9c4e480784cde000b41982f3afb6f7d00e2a.

I fixed this the wrong way.


# d2091d8876b95f8677532d2c608beb92a69bf9b6 06-Dec-2012 John Scipione <jscipione@gmail.com>

Change the cursor from white to yellow for blue theme

matching the text color. The white was a little off.


# 5ddf877be64a8d6aa12e6f856d3b748c5ba045d4 06-Dec-2012 John Scipione <jscipione@gmail.com>

More style fixes, return true or false directly


# 72bf9c4e480784cde000b41982f3afb6f7d00e2a 06-Dec-2012 John Scipione <jscipione@gmail.com>

Make Default color scheme match default settings...

So that it gets selected, well, by default. Before Custom was
being selected initially.


# 715c56d45435a373b9f581960fd352506a348922 06-Dec-2012 John Scipione <jscipione@gmail.com>

Style fixes only, no functional changes intended

including converting a while loop into a for loop.


# 2005db27ff2f17487996d6b807847450b5bc2547 04-Dec-2012 John Scipione <jscipione@gmail.com>

Change schema in Terminal to color scheme.

Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.


# 7271621fbe58529985108223858deb3676e9589a 04-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

Terminal: Spice up terminal color scheme selection


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 9a39723ca56c8678b7d343059845d31fcc40364d 29-Oct-2011 Joachim Seemer <humdingerb@googlemail.com>

Applied patch by Disreali, adding colour scheme green on black. Fixes #7977. Thanks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42989 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d70708127f7528a303520849a6150343577ad5de 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localize some forgotten strings spotted by diver.
Fix #6375.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7071dfc1d1e468a0700ecff0661abeacbfb980ac 19-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style.
Add NULL guard to the color schemes struct, although the code was safe
neverthless (for now)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 72439e2074e7b9486cc6899b8691f357a1716e6c 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Obviously, just checking for the text color isn't enough.
Also renamed colors to schema since it makes more sense


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37536 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80490c776a1a727daf66f2eec0431d43cab69c73 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Add a menufield to select color combinations, and add obvious
"white on black" and "black on white". For some reason these aren't
applied live, like when you chose a custom combo.
I'm not really fond of the code, and will rework it in the next few days.
But at least it works!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37535 a95241bf-73f2-0310-859d-f6bbb57e9c96