31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 8dcf3640346818e4540559f7e921d90fe9a0f00d Mon Sep 17 00:00:00 2001
|
|
From: peijiankang <peijiankang@kylinos.cn>
|
|
Date: Wed, 13 Jul 2022 10:08:57 +0800
|
|
Subject: [PATCH] pin windget windowIcon follow theme
|
|
|
|
---
|
|
src/tools/pin/pinwidget.cpp | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/tools/pin/pinwidget.cpp b/src/tools/pin/pinwidget.cpp
|
|
index 4c10ecd..0eef443 100755
|
|
--- a/src/tools/pin/pinwidget.cpp
|
|
+++ b/src/tools/pin/pinwidget.cpp
|
|
@@ -26,12 +26,11 @@
|
|
PinWidget::PinWidget(const QPixmap &pixmap, QWidget *parent) :
|
|
QWidget(parent), m_pixmap(pixmap)
|
|
{
|
|
- setWindowIcon(QIcon("/usr/share/icons/ukui-icon-theme-default/128x128/apps/kylin-screenshot.png"));
|
|
setWindowFlags(Qt::WindowStaysOnTopHint
|
|
| Qt::FramelessWindowHint);
|
|
//set the bottom widget background transparent
|
|
setAttribute(Qt::WA_TranslucentBackground);
|
|
- setMinimumWidth(300);
|
|
+ //setMinimumWidth(300);
|
|
ConfigHandler conf;
|
|
m_baseColor = conf.uiMainColorValue();
|
|
m_hoverColor = conf.uiContrastColorValue();
|
|
--
|
|
2.33.0
|
|
|