Skip to content

Commit

Permalink
fix: The bottom line of the bottombar bottoms is thick.
Browse files Browse the repository at this point in the history
The bottom line of the bottombar bottoms is thick.

Log: The bottom line of the bottombar bottoms is thick.
Bug: https://pms.uniontech.com/bug-view-197857.html
  • Loading branch information
lJxDabab authored and rb-union committed Mar 5, 2024
1 parent a2ac8a8 commit 3936848
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libimageviewer/viewpanel/contents/bottomtoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const int RT_SPACING = 20;
const int TOOLBAR_HEIGHT = 60;

const int TOOLBAR_DVALUE = 114 + 8;

const QColor TOOLBAR_BUTTOM_DARK=QColor("#303030");
const int THUMBNAIL_WIDTH = 32;
const int THUMBNAIL_ADD_WIDTH = 32;
const int THUMBNAIL_LIST_ADJUST = 9;
Expand Down Expand Up @@ -440,11 +440,10 @@ void LibBottomToolbar::slotThemeChanged(int type)

DPalette pa;
pa = m_preButton->palette();
pa.setColor(DPalette::Light, QColor("#303030"));
pa.setColor(DPalette::Dark, QColor("#303030"));
pa.setColor(DPalette::Light, TOOLBAR_BUTTOM_DARK);
pa.setColor(DPalette::Dark, TOOLBAR_BUTTOM_DARK);
// 单个按钮边框
QColor btnframecolor("#000000");
btnframecolor.setAlphaF(0.30);
QColor btnframecolor(TOOLBAR_BUTTOM_DARK);
pa.setColor(DPalette::FrameBorder, btnframecolor);
// 取消阴影
pa.setColor(DPalette::Shadow, btnframecolor);
Expand Down

0 comments on commit 3936848

Please sign in to comment.