Skip to content

Commit 0c22d5b

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: remove inner highlight from calendar selection box
1. Removed the inner white highlight effect from selected date boxes in the calendar widget 2. The highlight was visually unnecessary and didn't match current design guidelines 3. Simplified the painting logic by removing redundant pen color changes 4. Maintains the outer selection indicator while removing the inner decoration fix: 移除日历选择框的内层高光效果 1. 移除了日历组件中日期选择框的内层白色高光效果 2. 该高光效果视觉上不必要且不符合当前设计规范 3. 通过移除多余的画笔颜色变化简化了绘制逻辑 4. 保留外层选择指示器同时移除了内部装饰效果 Pms: BUG-317321
1 parent 3786740 commit 0c22d5b

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

plugins/dde-dock/datetime/calendar/sidebarcalendarwidget.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -553,18 +553,6 @@ void SidebarCalendarKeyButton::paintEvent(QPaintEvent* event)
553553
-RECT_PENWIDTH,
554554
-RECT_PENWIDTH)
555555
, ROUND_CORNER, ROUND_CORNER);
556-
//绘制选中框内圈白色高光
557-
pen.setColor(Qt::white);
558-
pen.setWidth(1);
559-
painter.setPen(pen);
560-
painter.drawRoundedRect(rectf.adjusted(RECT_PENWIDTH + RECT_MARGINS + 1,
561-
RECT_PENWIDTH + RECT_MARGINS + 1,
562-
-RECT_PENWIDTH - RECT_MARGINS - 1,
563-
-RECT_PENWIDTH - RECT_MARGINS - 1)
564-
, ROUND_CORNER - RECT_PENWIDTH, ROUND_CORNER - RECT_PENWIDTH);
565-
566-
pen.setColor(pa.windowText().color());
567-
painter.setPen(pen);
568556
} else if (!m_isThisMonth) {
569557
//设置正常显示状态下的字体颜色
570558
painter.setOpacity(0.3);

0 commit comments

Comments
 (0)