Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: The bottom line of the bottombar bottoms is thick. #130

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading