diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-09 12:45:10 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-09 12:45:10 -0500 |
commit | e6a725a855208bccab349c6265c6d99af65ecc42 (patch) | |
tree | 397fd3c232108c329997462d45327e5c4d1fa4ef /lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp | |
parent | Add the WM_PROTOCOLS ICCCM support to the lumina library. (diff) | |
download | lumina-e6a725a855208bccab349c6265c6d99af65ecc42.tar.gz lumina-e6a725a855208bccab349c6265c6d99af65ecc42.tar.bz2 lumina-e6a725a855208bccab349c6265c6d99af65ecc42.zip |
A couple changes to Lumina:
1) Add 3 different "view modes" for applications in the start menu: Alphabetical (no categories), Partial Categories (same as before - still on list though), or Categories (need to click the category to go into it and see the applications).2) Fix the theming of partially checked checkboxes and groupboxes.
3) Force the desktop icons to have black text in the theme (no matter which color scheme is in use).
4) Adjust the outlining effects of the desktop icons to use a radial gradient now, so you get a smoother effect which does not steal eye focus as much on contrasting backgrounds.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp')
-rw-r--r-- | lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp b/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp index 2e14c4e5..8754e534 100644 --- a/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp +++ b/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp @@ -42,6 +42,16 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob name->setText( itemPath.section("/",-1)); text = itemPath.section("/",-1); } + }else if(type.startsWith("chcat::::")){ + //Category given + actButton->setVisible(false); + iconPath = LXDG::DesktopCatToIcon(type.section("::::",1,50)); + if(goback){ iconPath = "go-previous"; type = "chcat::::"; itemPath = "<B>("+itemPath+")</B>"; } + icon->setPixmap( LXDG::findIcon(iconPath,"applications-other").pixmap(64,64) ); + name->setText(itemPath); + text = itemPath; + icon->setWhatsThis(type); + linkPath = type; }else{ actButton->setVisible(false); if(itemPath.endsWith("/")){ itemPath.chop(1); } @@ -75,6 +85,7 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob setupContextMenu(); } +// - Application constructor ItemWidget::ItemWidget(QWidget *parent, XDGDesktop item) : QFrame(parent){ createWidget(); isDirectory = false; @@ -115,15 +126,10 @@ void ItemWidget::createWidget(){ contextMenu = new QMenu(); connect(contextMenu, SIGNAL(aboutToShow()), this, SLOT(actionMenuOpen()) ); connect(contextMenu, SIGNAL(aboutToHide()), this, SLOT(actionMenuClosed()) ); - /*button = new QToolButton(this); - button->setIconSize( QSize(14,14) ); - button->setAutoRaise(true);*/ actButton = new QToolButton(this); actButton->setPopupMode(QToolButton::InstantPopup); - //actButton->setFixedSize( QSize(17,34) ); actButton->setArrowType(Qt::DownArrow); icon = new QLabel(this); - //icon->setFixedSize( QSize(34,34) ); name = new QLabel(this); name->setWordWrap(true); //Add them to the layout |