History log of /haiku/src/preferences/appearance/APRView.cpp
Revision Date Author Comments
# 979a0bc4 21-Mar-2024 Augustin Cavalier <waddlesplash@gmail.com>

Appearance: Hide most colors by default and compute them automatically.

In the new "automatic" mode, the number of displayed colors
is just 3, as opposed to the full 38. Much more manageable!

The HSL routines added in this commit were derived from
https://gist.github.com/ciembor/1494530 which is itself derived
from the Wikipedia page describing HSL/HSV.

Part of #15543 and #11636.

Change-Id: I230a358d18c379fb0673162e0b3cbdb8d1b8d84e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7479
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 92a87afc 27-Feb-2024 Augustin Cavalier <waddlesplash@gmail.com>

Appearance: Remove some dead code.

This is now managed in another class entirely.

Change-Id: Ib415b17b5785b9077b42146fff97d85184b23a67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7478
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 5ef3f386 23-Jul-2022 John Scipione <jscipione@gmail.com>

Appearance: Make ColorPreview size font sensitive

AddGlue to separate color preview and color control instead
of growing the preview.

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


# e88a89e6 04-Jul-2018 John Scipione <jscipione@gmail.com>

Appearance Prefs: drag and drop between ColorWhichItems

Fixes final piece of #8618

Already added support for list items to drag colors out and you can
drag and drop between the list items and preview. but, what was
missing was drag and drop between list items. Updated
ColorWhichListItem to also accept color drops through their
parent ColorWhichListView.

Also included some related style fixes, use B_RGB_COLOR_TYPE
constant in place of (type_code)'RGBC'. 80-char limit fixes.

Simplify similar code in ColorPreview class to parse out rgb_color
from message.

ColorPreview passes dropped color along to APRView

APRView no longer accepts color drops, this is handled by ListView
and ColorPreview now.

Consolidated "RGBColor" and "which" message name strings into
constants defined in defs.h.

Change-Id: I88ec2a4ffe077620ec4cc3b032196cbff0f09615


# 46b84951 18-Aug-2016 John Scipione <jscipione@gmail.com>

Appearance: Make color which items draggable

Create a ColorWhichListView class which impliments InitiateDrag()
to drag a color square out of the list view. You can then drop the
color anywhere that accepts a color drop. This allows you to drag
and drop colors between list items for example.


# f0650dc9 09-Dec-2015 looncraz <looncraz@looncraz.net>

preferences: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.


# ad926b25 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Improve/fix tab view layout as discussed

See http://www.freelists.org/post/haiku-development/Unifying-visuals-of-BTabView-usage

Besides the tab bar going the full width of the window, also some
layouting tweaks to several apps and prefs.

Still missing: the first (and last) tabs in the tab bar should be inset by
B_USE_WINDOW_SPACING so the controls in the tab view line up nicely.
I think I remember stippi wanting to look into it... :)


# b5832c17 05-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Appearance: don't send kMsgUpdate on ATTRIBUTE_CHOSEN

As discussed in #11698, selecting an item in the list needs an update of
the selected color, but doesn't need a check for changes and status of
the "revert" button.


# e7cf3254 05-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Appearance: enable Revert when a color is dropped

Fixes #11698.


# 135f35e5 08-Apr-2013 John Scipione <jscipione@gmail.com>

SetColor and redraw listitems on revert. Fixes #9640

Finally the point of these commits, to fix this bug.


# 0112415f 08-Apr-2013 John Scipione <jscipione@gmail.com>

Reverse loop variable avoidance


# 7ef12e5c 08-Apr-2013 John Scipione <jscipione@gmail.com>

Eliminated _UpdateControls(), some style fixes


# 4600a90c 08-Apr-2013 John Scipione <jscipione@gmail.com>

Pointer style fixes


# aff2fb87 08-Apr-2013 John Scipione <jscipione@gmail.com>

Loop count premature optimization


# 2c765faf 23-Feb-2013 John Scipione <jscipione@gmail.com>

Rename ColorWell to ColorPreview in Appearance prefs.

No functional change intended.

I'd like to use the name "ColorWell" for a different type of
class eventually so I'm making room for it. ColorPreview is
arguably a better name for the class anyway.

Also did a style cleanup of the ColorWell => ColorPreview class at
the same time.


# 20b3f78f 09-Jun-2012 Ryan Leavengood <leavengood@gmail.com>

Draw the chosen color next to the name of system colors.

I copied BStringItem::Draw then modified it. I couldn't find a clean way
of doing it otherwise, since the color box drawing needs to occur between the
selection and text drawing, and the text needs to be offset while the selection
shouldn't be.


# 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.


# 9ed32a43 26-Feb-2012 Stephan Aßmus <superstippi@gmx.de>

Embedded the Font into the Appearance Preflet

* Copied the essential parts from the Font preflet into the Appearance
preflet folder.
* Adopted these files to better direct where BMessage arrive and why.
The Font preflet just forwarded them from the BWindow handler,
which was quite messy.
* Embedded the Font preferences as another tab. The first one actually,
with the Decor settings also moved in front of the Anti-Aliasing tab.
* Refactored the Defaults and Revert button updates in the window code.
* AInclude all active settings tabs in the Defaults and Revert handling
for consistency. But eventually, the buttons should only affect the
currently visible page.


# e11b156d 12-Nov-2011 Philippe Saint-Pierre <stpere@gmail.com>

Fix for Defaults button issues in Appearance preflet

* Implement isDefaultable() and SetDefaults() for Antialiasing tab;
* The default color set was out of sync with the actual colors,
it now gets the actual colors rather than hardcoding them;
* Some hardcoded values for defaults related to antialiasing were
differents from actual default values stated in AppServer;
* Revert now works for Antialiasing settings also.

Fix #3331


# 97510b03 30-Jun-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Introduce a new tab to the Appearance Preflet for Decorator
* Show Decorator information button
* Decorator changes happen in real time on click
* Remove *old* OpenBeOS Decerator selection code
* Still have a little cleanup todo
* Need to give a little focus on revert/default buttons
* Decerator test / screenshots?


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


# d96a7d59 21-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Minor cleanup.
+alpha


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


# b46615c5 19-May-2011 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Joseph "looncraz" Groover from ticket #7445.
This changes how Decorators are managed and applied. The app_server
no longer scans and maintains the available ones himself, but is
simply asked to load a Decorator add-on from a provided path.
The Decorator scanning is moved into DecorInfo and DecorInfoUtil,
private classes in the InterfaceKit. The bin command 'setdecor'
uses those.
I cleaned up all the coding style violations that I could find,
removed chunks of code which didn't make sense (if you never put
a NULL pointer into a list, you don't need to check for this and
so on) and also cleaned up other passages for improved clarity
and simplicity.
I also tested the functionality and it works fine. Would even be
Ok to include in Alpha 3, IMHO. Thanks for the patch!


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


# 8eff03f5 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all build warnings by collectcatkeys that I found
* automatic whitespace cleanup

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


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# c31c1fef 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# f2a4cb29 29-Sep-2009 Oliver Tappe <zooey@hirschkaefer.de>

* fixed a couple of warnings about TR_CONTEXT being redefined.
It is good practive to #undef this before every definition,
due to how the ExtractCatalogEntries jam-rule works.


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


# d36235a2 21-Sep-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Finished localizing the appearance preference panel and translated it to french.
-The French translation is far from perfect. Comments and suggestions welcome.
-The color picker is an OS Widget but uses text (Red, Green, Blue). This is kind of an edge case, but may need a system-wide catalog. I will now translate other things and see if I encounter similar problems.


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


# 333d6460 04-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jaagup Repaen: Fix crash when pressing "Defaults" because of
non-existing decor popup. Thanks a lot!


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


# ed33219a 30-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the color chooser only take up as much space as needed, ie. the list
view will now grow with the window.
* fDecorMenu will no longer be set.
* Minor cleanup.


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


# faff99c0 20-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Use layout management for all of the window. Can be improved by making
the listview use all the available additional size. But works far better
than before.


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


# 2259002b 15-Oct-2008 Alexandre Deckner <alex@zappotek.com>

* Augmented the cellSize of the BColorControl to 8, it was previously clamped to that value
anyway, but now BColorControl actually respects this setting.


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


# b3c05fb6 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Remember changing the color of an ui_color.
* Simplified code a lot when doing that and removed lots of unused code.

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


# ec4a55fd 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Removed wrong TODO.

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


# 7b1c4ba3 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Always draw entire ColorWell to avoid flickering
* Moved ColorWell infront of ColorPicker. It was hidden behinde the attribute list.
* Made ColorWell and ColorPicker follow its parent frame bottom when resized.
* Made attribute list follows its parent frame top and bottom when resized.


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


# 59e13a3f 03-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Andrej Spielmann (GSoC):
* Simplified the subpixel related methods for the AGG "pixel format" template
interface, the ones for the solid cover simply pass through the existing
methods, so only one subpixel blending function is left which does the actual
work (this removes a lot of the previously added code)
* Implemented a new rasterizer based on the original AGG rasterizer which
implements subpixel anti-aliasing for any generic AGG vector pipelines. It
is now optionally used in Painter and AGGTextRenderer (for vector fonts, ie
rotated, sheared or big enough fonts) depending on the global subpixel
setting.
* Put all subpixel variables into the new GlobalSubpixelSettings.h|cpp
* Simplified DesktopSettings related classes a bit and renamed previous
FontSubpixelAntialiasing to just SubpixelAntialiasing.
* The private libbe functions for subpixel related settings moved from Font.cpp
to InterfaceDefs.cpp where other such functions live. They are not related
to fonts only anymore.
* Removed the subpixel related settings again from the Fonts preflet and added
them to the Appearance preflet instead.

All of the above implements subpixel anti-aliasing on a global scale, which
to my knowledge no other OS is doing at the moment. Any vector rendering
can optionally use subpixel anti-aliasing in Haiku now. The bitmap cached fonts
are still affected by the Freetype complile time #define to enable the patented
subpixel rasterization (three times wide glyphs). Vector fonts and shapes are
not affected though at the moment.



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


# f6d52cb7 29-Feb-2008 Rene Gollent <anevilyak@gmail.com>

- Added operator = implementation to rgb_color for convenience.
- Major cleanup of Appearance prefs - colors are now dynamically
read from the app_server, and updating them also works, but
triggers a bug: the state of the current window somehow gets
confused, i.e. if I update the panel background color, for some
reason the color of the BButtons in the appearance pref change color
and also the textviews begin misbehaving. Have not yet tracked down
the cause of this, but newly created windows after making the change
do show up with the updated color and behave properly. Also vastly
simplified the pref and cleaned up some obsolete definitions.



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


# 4b3db102 13-Oct-2007 Jérôme Duval <korli@users.berlios.de>

Patch from Pier Luigi Fiorini for layouts of Appearance and Keyboard preferences


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


# 6eb01296 23-Aug-2007 Ryan Leavengood <leavengood@gmail.com>

Patch from Justin O'Dell for bug #254, fixing the Defaults button behavior
for the Appearance and Menu prefs, and Tracker's settings.


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


# 7ef397d3 07-Mar-2007 DarkWyrm <darkwyrm@gmail.com>

Hopefully this fixes bug #1084. Untested because of bug #1035


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


# 5605e701 23-Feb-2007 DarkWyrm <darkwyrm@gmail.com>

Added a menu to allow the user to choose the decorator. Untested, but theoretically working. I'll be content with the user being able pick a decorator and tweak system colors for R1.


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


# 3d5da9f4 30-Oct-2006 DarkWyrm <darkwyrm@gmail.com>

Updated style to come pretty close to matching OT style guidelines


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


# a3b25e4f 30-Oct-2006 DarkWyrm <darkwyrm@gmail.com>

Serious simplification and retooling of Appearance app. Just system colors supported for now. Still not finished, but getting there.


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


# a10cf76e 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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


# b5832c1759ea79952d7b7a451047387446995a31 05-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Appearance: don't send kMsgUpdate on ATTRIBUTE_CHOSEN

As discussed in #11698, selecting an item in the list needs an update of
the selected color, but doesn't need a check for changes and status of
the "revert" button.


# e7cf3254adb9002f8952056ea941c623621abaf4 05-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Appearance: enable Revert when a color is dropped

Fixes #11698.


# 135f35e5c768463ad8e858734f61b015b07fe314 08-Apr-2013 John Scipione <jscipione@gmail.com>

SetColor and redraw listitems on revert. Fixes #9640

Finally the point of these commits, to fix this bug.


# 0112415f3b729b37321cb5b1fade4e4b8c469f8a 08-Apr-2013 John Scipione <jscipione@gmail.com>

Reverse loop variable avoidance


# 7ef12e5cad734146b5690f3bb04bc260d598c1c9 08-Apr-2013 John Scipione <jscipione@gmail.com>

Eliminated _UpdateControls(), some style fixes


# 4600a90cd0d37415f144fb2050c62d8f7408da27 08-Apr-2013 John Scipione <jscipione@gmail.com>

Pointer style fixes


# aff2fb8750fef730a8905a732834aaacc16664de 08-Apr-2013 John Scipione <jscipione@gmail.com>

Loop count premature optimization


# 2c765fafc57141bcb456fc0005b4dbf61d12df22 23-Feb-2013 John Scipione <jscipione@gmail.com>

Rename ColorWell to ColorPreview in Appearance prefs.

No functional change intended.

I'd like to use the name "ColorWell" for a different type of
class eventually so I'm making room for it. ColorPreview is
arguably a better name for the class anyway.

Also did a style cleanup of the ColorWell => ColorPreview class at
the same time.


# 20b3f78f8d7e5a2df62aa59c7e15bc5ffd7431ab 09-Jun-2012 Ryan Leavengood <leavengood@gmail.com>

Draw the chosen color next to the name of system colors.

I copied BStringItem::Draw then modified it. I couldn't find a clean way
of doing it otherwise, since the color box drawing needs to occur between the
selection and text drawing, and the text needs to be offset while the selection
shouldn't be.


# 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.


# 9ed32a430ccf673f99beffe3bdc7b1f5478b5a81 26-Feb-2012 Stephan Aßmus <superstippi@gmx.de>

Embedded the Font into the Appearance Preflet

* Copied the essential parts from the Font preflet into the Appearance
preflet folder.
* Adopted these files to better direct where BMessage arrive and why.
The Font preflet just forwarded them from the BWindow handler,
which was quite messy.
* Embedded the Font preferences as another tab. The first one actually,
with the Decor settings also moved in front of the Anti-Aliasing tab.
* Refactored the Defaults and Revert button updates in the window code.
* AInclude all active settings tabs in the Defaults and Revert handling
for consistency. But eventually, the buttons should only affect the
currently visible page.


# e11b156da96c5b5f9c00913c7eda6f6695ec16d1 12-Nov-2011 Philippe Saint-Pierre <stpere@gmail.com>

Fix for Defaults button issues in Appearance preflet

* Implement isDefaultable() and SetDefaults() for Antialiasing tab;
* The default color set was out of sync with the actual colors,
it now gets the actual colors rather than hardcoding them;
* Some hardcoded values for defaults related to antialiasing were
differents from actual default values stated in AppServer;
* Revert now works for Antialiasing settings also.

Fix #3331


# 97510b0338f8ac42a7fa13afd7f1175f7aa213ad 30-Jun-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Introduce a new tab to the Appearance Preflet for Decorator
* Show Decorator information button
* Decorator changes happen in real time on click
* Remove *old* OpenBeOS Decerator selection code
* Still have a little cleanup todo
* Need to give a little focus on revert/default buttons
* Decerator test / screenshots?


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


# d96a7d591ef3cc48a4d64936d9d1113ef367469f 21-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Minor cleanup.
+alpha


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


# b46615c55ad2c8fe6de54412055a0713da3d610a 19-May-2011 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Joseph "looncraz" Groover from ticket #7445.
This changes how Decorators are managed and applied. The app_server
no longer scans and maintains the available ones himself, but is
simply asked to load a Decorator add-on from a provided path.
The Decorator scanning is moved into DecorInfo and DecorInfoUtil,
private classes in the InterfaceKit. The bin command 'setdecor'
uses those.
I cleaned up all the coding style violations that I could find,
removed chunks of code which didn't make sense (if you never put
a NULL pointer into a list, you don't need to check for this and
so on) and also cleaned up other passages for improved clarity
and simplicity.
I also tested the functionality and it works fine. Would even be
Ok to include in Alpha 3, IMHO. Thanks for the patch!


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


# 8eff03f5705966c294c96a4e249bb525069b8e78 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all build warnings by collectcatkeys that I found
* automatic whitespace cleanup

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


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# c31c1fef4f7a3f73435b734a7f42f41cd3f41911 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# f2a4cb29e16ee704c7c6d9d7a4e4e8f70b4be5bd 29-Sep-2009 Oliver Tappe <zooey@hirschkaefer.de>

* fixed a couple of warnings about TR_CONTEXT being redefined.
It is good practive to #undef this before every definition,
due to how the ExtractCatalogEntries jam-rule works.


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


# d36235a21f1e3cb8970a2c6f0fecd23cd02d9634 21-Sep-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Finished localizing the appearance preference panel and translated it to french.
-The French translation is far from perfect. Comments and suggestions welcome.
-The color picker is an OS Widget but uses text (Red, Green, Blue). This is kind of an edge case, but may need a system-wide catalog. I will now translate other things and see if I encounter similar problems.


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


# 333d6460aa635e0223a06430c5e99047033b3378 04-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jaagup Repaen: Fix crash when pressing "Defaults" because of
non-existing decor popup. Thanks a lot!


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


# ed33219ac8051d18f6f71ee40bae0b33178844ed 30-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the color chooser only take up as much space as needed, ie. the list
view will now grow with the window.
* fDecorMenu will no longer be set.
* Minor cleanup.


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


# faff99c017fd4b3eb4b4be9afa2fc19ecd3c8331 20-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Use layout management for all of the window. Can be improved by making
the listview use all the available additional size. But works far better
than before.


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


# 2259002bdb5f2da69b70b922327e3276cc8201c2 15-Oct-2008 Alexandre Deckner <alex@zappotek.com>

* Augmented the cellSize of the BColorControl to 8, it was previously clamped to that value
anyway, but now BColorControl actually respects this setting.


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


# b3c05fb63ede179668921e618f0ef40c323b128e 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Remember changing the color of an ui_color.
* Simplified code a lot when doing that and removed lots of unused code.

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


# ec4a55fdbfb20e6f1b409f08248531bdad71ac22 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Removed wrong TODO.

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


# 7b1c4ba38f1c63aecc6b1b701f850f5403b879c1 06-Sep-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Always draw entire ColorWell to avoid flickering
* Moved ColorWell infront of ColorPicker. It was hidden behinde the attribute list.
* Made ColorWell and ColorPicker follow its parent frame bottom when resized.
* Made attribute list follows its parent frame top and bottom when resized.


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


# 59e13a3f06eedbc797f797da71c6810634b22cd4 03-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Andrej Spielmann (GSoC):
* Simplified the subpixel related methods for the AGG "pixel format" template
interface, the ones for the solid cover simply pass through the existing
methods, so only one subpixel blending function is left which does the actual
work (this removes a lot of the previously added code)
* Implemented a new rasterizer based on the original AGG rasterizer which
implements subpixel anti-aliasing for any generic AGG vector pipelines. It
is now optionally used in Painter and AGGTextRenderer (for vector fonts, ie
rotated, sheared or big enough fonts) depending on the global subpixel
setting.
* Put all subpixel variables into the new GlobalSubpixelSettings.h|cpp
* Simplified DesktopSettings related classes a bit and renamed previous
FontSubpixelAntialiasing to just SubpixelAntialiasing.
* The private libbe functions for subpixel related settings moved from Font.cpp
to InterfaceDefs.cpp where other such functions live. They are not related
to fonts only anymore.
* Removed the subpixel related settings again from the Fonts preflet and added
them to the Appearance preflet instead.

All of the above implements subpixel anti-aliasing on a global scale, which
to my knowledge no other OS is doing at the moment. Any vector rendering
can optionally use subpixel anti-aliasing in Haiku now. The bitmap cached fonts
are still affected by the Freetype complile time #define to enable the patented
subpixel rasterization (three times wide glyphs). Vector fonts and shapes are
not affected though at the moment.



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


# f6d52cb737f40a71b861fbb95d43e5fa04cf4fbc 29-Feb-2008 Rene Gollent <anevilyak@gmail.com>

- Added operator = implementation to rgb_color for convenience.
- Major cleanup of Appearance prefs - colors are now dynamically
read from the app_server, and updating them also works, but
triggers a bug: the state of the current window somehow gets
confused, i.e. if I update the panel background color, for some
reason the color of the BButtons in the appearance pref change color
and also the textviews begin misbehaving. Have not yet tracked down
the cause of this, but newly created windows after making the change
do show up with the updated color and behave properly. Also vastly
simplified the pref and cleaned up some obsolete definitions.



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


# 4b3db102971170d5ab5f14b81782975123007729 13-Oct-2007 Jérôme Duval <korli@users.berlios.de>

Patch from Pier Luigi Fiorini for layouts of Appearance and Keyboard preferences


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


# 6eb01296599e3b3b036fd6844d1918fea4358ea2 23-Aug-2007 Ryan Leavengood <leavengood@gmail.com>

Patch from Justin O'Dell for bug #254, fixing the Defaults button behavior
for the Appearance and Menu prefs, and Tracker's settings.


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


# 7ef397d30cef596380dbf07619b30ccad7658834 07-Mar-2007 DarkWyrm <darkwyrm@gmail.com>

Hopefully this fixes bug #1084. Untested because of bug #1035


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


# 5605e701d7bc5fce3080931bca43700d1f292948 23-Feb-2007 DarkWyrm <darkwyrm@gmail.com>

Added a menu to allow the user to choose the decorator. Untested, but theoretically working. I'll be content with the user being able pick a decorator and tweak system colors for R1.


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


# 3d5da9f46c351cbb1c6da355715c4fac0e307a6a 30-Oct-2006 DarkWyrm <darkwyrm@gmail.com>

Updated style to come pretty close to matching OT style guidelines


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


# a3b25e4ff009f0c0e8bd343efe5b0f7f65f6971c 30-Oct-2006 DarkWyrm <darkwyrm@gmail.com>

Serious simplification and retooling of Appearance app. Just system colors supported for now. Still not finished, but getting there.


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


# a10cf76ef5b9e8c726ebc47183abd6943023cf8f 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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