mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
UI Nits: Use our own icons not standardIcons
.. for left and right in the calendar, since the standard ones are pretty ugly.
This commit is contained in:
@@ -149,6 +149,9 @@ GcLabel::event(QEvent *e)
|
||||
void
|
||||
GcLabel::paintEvent(QPaintEvent *)
|
||||
{
|
||||
static QIcon left = iconFromPNG(":images/mac/left.png");
|
||||
static QIcon right = iconFromPNG(":images/mac/right.png");
|
||||
|
||||
QPainter painter(this);
|
||||
painter.save();
|
||||
painter.setRenderHints(QPainter::Antialiasing|QPainter::TextAntialiasing, true);
|
||||
@@ -187,8 +190,7 @@ GcLabel::paintEvent(QPaintEvent *)
|
||||
} else {
|
||||
|
||||
// use standard icons
|
||||
QIcon icon = text() == "<" ? style()->standardIcon(QStyle::SP_ArrowLeft) :
|
||||
style()->standardIcon(QStyle::SP_ArrowRight);
|
||||
QIcon &icon = text() == "<" ? left : right;
|
||||
Qt::AlignmentFlag alignment = text() == "<" ? Qt::AlignLeft : Qt::AlignRight;
|
||||
|
||||
icon.paint(&painter, all, alignment|Qt::AlignVCenter);
|
||||
|
||||
@@ -125,6 +125,8 @@
|
||||
<file>images/mac/hide.png</file>
|
||||
<file>images/mac/show.png</file>
|
||||
<file>images/mac/sidebar.png</file>
|
||||
<file>images/mac/left.png</file>
|
||||
<file>images/mac/right.png</file>
|
||||
<file>images/analysis.png</file>
|
||||
<file>images/home.png</file>
|
||||
<file>images/diary.png</file>
|
||||
|
||||
BIN
src/images/mac/left.png
Executable file
BIN
src/images/mac/left.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 199 B |
BIN
src/images/mac/right.png
Executable file
BIN
src/images/mac/right.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 183 B |
Reference in New Issue
Block a user