mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-14 10:19:26 -04:00
the tags are colored in the menu with style cleanlooks
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f746306975
commit
3fdd570f62
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ protected:
|
||||||
initStyleOption(&opt, pAction);
|
initStyleOption(&opt, pAction);
|
||||||
|
|
||||||
opt.palette.setColor(QPalette::ButtonText, QColor(Values [ACTION_TAGSINDEX_COLOR].toInt()));
|
opt.palette.setColor(QPalette::ButtonText, QColor(Values [ACTION_TAGSINDEX_COLOR].toInt()));
|
||||||
|
// needed for Cleanlooks
|
||||||
|
opt.palette.setColor(QPalette::Text, QColor(Values [ACTION_TAGSINDEX_COLOR].toInt()));
|
||||||
|
|
||||||
opt.rect = adjustedActionRect;
|
opt.rect = adjustedActionRect;
|
||||||
style()->drawControl(QStyle::CE_MenuItem, &opt, &p, this);
|
style()->drawControl(QStyle::CE_MenuItem, &opt, &p, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue