History log of /haiku/src/kits/interface/StringItem.cpp
Revision Date Author Comments
# cbb8ebbb 10-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Set item colors in BListView instead of BStringItem

* Fixes #3970 without introducing the bugs from BeOS
* Makes it easy to override BStringItem just to change the text color.
* Makes it easy to implement custom list items using the correct colors.


# 86bdb1b6 07-Mar-2014 John Scipione <jscipione@gmail.com>

Style fixes to BStringItem


# 8c6d5490 25-Nov-2013 John Scipione <jscipione@gmail.com>

BStringItem: Set the low color to the list view color

instead of the low color, practically this should make little difference,
just a cleanup.


# e3be58f1 25-Nov-2013 John Scipione <jscipione@gmail.com>

BStringItem: Tiny style fix


# 63881c3a 24-Nov-2012 John Scipione <jscipione@gmail.com>

Update StringItem use be_control_look->DefaultLabelSpacing()

Also update the Update() method to take into account the added
spacing.

Thanks Axel and Stippi.


# 4807bf08 23-Nov-2012 John Scipione <jscipione@gmail.com>

Move StringItem text over 4 pixels.

This is so that it does not get draw flush to the edge of the
list view and there is just a bit of padding between the left
edge and where the text starts. The 4 pixels matches other
places that override the DrawItem() method (like Tracker prefs).


# 91c78f09 20-Aug-2012 John Scipione <jscipione@gmail.com>

Create and use new list view item colors

* B_LIST_BACKGROUND_COLOR
* B_LIST_SELECTED_BACKGROUND_COLOR
* B_LIST_ITEM_TEXT_COLOR
* B_LIST_SELECTED_ITEM_TEXT_COLOR


# 2c1f6c10 20-Aug-2012 John Scipione <jscipione@gmail.com>

Update ListItem's to use menu item colors.

* Selected bg uses B_MENU_SELECTED_BACKGROUND_COLOR
* Selected text uses B_MENU_SELECTED_ITEM_TEXT_COLOR
* Unselected text uses B_MENU_ITEM_TEXT_COLOR

Update BStringItem, but also the custom Listitem code in the
Appearance and Locale preflets.


# 7ba0381d 21-Aug-2011 Oliver Tappe <zooey@hirschkaefer.de>

* add protected accessor for baseline offset to StringItem, as that value is of
interest to derived classes

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


# f3b1ada5 17-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Moved class BStringItem into its own source file.
* Changed BStringItem::Update() to set a better baseline offset and height;
this should improve vertical text placement.
* Fixed a bug in BStringItem::Update(): it used the owner to determine the
width, but must use the font passed in instead.
* Coding style cleanup.


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


# baab695f 24-Dec-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed StringItem.cpp as its implementation is in ListItem.cpp


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


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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


# cbb8ebbbbb21f6a29ccd3830e32cb808e62a92bc 10-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Set item colors in BListView instead of BStringItem

* Fixes #3970 without introducing the bugs from BeOS
* Makes it easy to override BStringItem just to change the text color.
* Makes it easy to implement custom list items using the correct colors.


# 86bdb1b69ddc7a7590da9b2a3b765e62b3ca8589 07-Mar-2014 John Scipione <jscipione@gmail.com>

Style fixes to BStringItem


# 8c6d549022e6da7ee267e3b4e5e230d446aef5ad 25-Nov-2013 John Scipione <jscipione@gmail.com>

BStringItem: Set the low color to the list view color

instead of the low color, practically this should make little difference,
just a cleanup.


# e3be58f1441074af0ca77697386ffe4a11525905 25-Nov-2013 John Scipione <jscipione@gmail.com>

BStringItem: Tiny style fix


# 63881c3a8894b587fdeb2a829379bc936b70debe 24-Nov-2012 John Scipione <jscipione@gmail.com>

Update StringItem use be_control_look->DefaultLabelSpacing()

Also update the Update() method to take into account the added
spacing.

Thanks Axel and Stippi.


# 4807bf084997fc93c2013e06c2cb2a4661f9e098 23-Nov-2012 John Scipione <jscipione@gmail.com>

Move StringItem text over 4 pixels.

This is so that it does not get draw flush to the edge of the
list view and there is just a bit of padding between the left
edge and where the text starts. The 4 pixels matches other
places that override the DrawItem() method (like Tracker prefs).


# 91c78f092f17e1cc233f7f85a075f72b72b3f246 20-Aug-2012 John Scipione <jscipione@gmail.com>

Create and use new list view item colors

* B_LIST_BACKGROUND_COLOR
* B_LIST_SELECTED_BACKGROUND_COLOR
* B_LIST_ITEM_TEXT_COLOR
* B_LIST_SELECTED_ITEM_TEXT_COLOR


# 2c1f6c10cea42833d502ed3e97cae02565d9f885 20-Aug-2012 John Scipione <jscipione@gmail.com>

Update ListItem's to use menu item colors.

* Selected bg uses B_MENU_SELECTED_BACKGROUND_COLOR
* Selected text uses B_MENU_SELECTED_ITEM_TEXT_COLOR
* Unselected text uses B_MENU_ITEM_TEXT_COLOR

Update BStringItem, but also the custom Listitem code in the
Appearance and Locale preflets.


# 7ba0381def2f27dd6cca27f7c391aa32f8c0cb19 21-Aug-2011 Oliver Tappe <zooey@hirschkaefer.de>

* add protected accessor for baseline offset to StringItem, as that value is of
interest to derived classes

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


# f3b1ada54fee6fc493ca736939cc0d799b6b24f2 17-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Moved class BStringItem into its own source file.
* Changed BStringItem::Update() to set a better baseline offset and height;
this should improve vertical text placement.
* Fixed a bug in BStringItem::Update(): it used the owner to determine the
width, but must use the font passed in instead.
* Coding style cleanup.


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


# baab695f356443fa01759e4c74478f64a36f19db 24-Dec-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed StringItem.cpp as its implementation is in ListItem.cpp


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


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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