aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-05-15 08:55:31 -0400
committerKen Moore <ken@ixsystems.com>2018-05-15 08:55:31 -0400
commit1d06950a02d5d8312d0f179e11dee8d7a37adb6d (patch)
treeeade1c90e7fc0c9c20445ca0d05c7b2c24205efb /src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp
parentGet the plugin system working with the panels. (diff)
downloadlumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.tar.gz
lumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.tar.bz2
lumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.zip
Get the Clock plugin cleaned up a bit so it better supports multi-line panels.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp
index 035dd29c..2233273e 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp
@@ -94,6 +94,7 @@ void PanelObject::syncWithSettings(QRect parent_geom){
double length = DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/length_percent", 100).toDouble()/100.0;
double width = DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/width_font_percent", 2.1).toDouble();
width = qRound(width * QApplication::fontMetrics().height() );
+ //qDebug() << " Got Panel Width From Settings:" << width;
this->setBackground( DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/background", "rgba(0,0,0,120)").toString() );
// qDebug() << "Update Panel:" << panel_id << id << anchor+"/"+align << length << width;
//Now calculate the geometry of the panel
bgstack15