aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/desktopview
diff options
context:
space:
mode:
authorChristopher Roy Bratusek <nano@jpberlin.de>2014-11-07 18:29:56 +0100
committerChristopher Roy Bratusek <nano@jpberlin.de>2014-11-07 18:29:56 +0100
commit29ced6bf8dfa6780fc188192cfdc36ea6315cce8 (patch)
tree33848aa946ad6a5b0b5d4ad5b4f9039c5f046da0 /lumina-desktop/desktop-plugins/desktopview
parentMerge remote-tracking branch 'upstream/master' (diff)
parentStreamline the file manager quite a bit by putting the long-lived checks in a... (diff)
downloadlumina-29ced6bf8dfa6780fc188192cfdc36ea6315cce8.tar.gz
lumina-29ced6bf8dfa6780fc188192cfdc36ea6315cce8.tar.bz2
lumina-29ced6bf8dfa6780fc188192cfdc36ea6315cce8.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lumina-desktop/desktop-plugins/desktopview')
-rw-r--r--lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
index 98d132ac..54727a36 100644
--- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
@@ -18,9 +18,8 @@ DesktopViewPlugin::DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(par
list->setSpacing(2);
list->setSelectionBehavior(QAbstractItemView::SelectItems);
list->setSelectionMode(QAbstractItemView::NoSelection);
- list->setStyleSheet( "QListWidget{ background: transparent; }" );
+ list->setStyleSheet( "QListWidget{ background: rgba(255,255,255,100); border: none; border-radius: 3px;}" );
list->setIconSize(QSize(64,64));
- list->setGridSize(QSize(80,80));
this->layout()->addWidget(list);
this->setInitialSize(200,300);
watcher = new QFileSystemWatcher(this);
@@ -41,6 +40,7 @@ void DesktopViewPlugin::runItem(QListWidgetItem *item){
void DesktopViewPlugin::updateContents(){
list->clear();
+ list->setGridSize(QSize(80,70+this->fontMetrics().height()));
QDir dir(QDir::homePath()+"/Desktop");
QFileInfoList files = dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name | QDir::Type | QDir::DirsFirst);
for(int i=0; i<files.length(); i++){
bgstack15