OSDN Git Service

表示される関連度のフォントを少し変更。
authoryuki <kimaira7@gmail.com>
Thu, 2 May 2013 07:42:49 +0000 (16:42 +0900)
committeryuki <kimaira7@gmail.com>
Thu, 2 May 2013 07:42:49 +0000 (16:42 +0900)
src/cx/fbn/nevernote/gui/RensoNoteListItem.java

index b1324b9..7aa7ab0 100644 (file)
@@ -103,7 +103,7 @@ public class RensoNoteListItem extends QWidget{
                // 項目の中身
                // フォント設定
                QFont relationFont = new QFont();
                // 項目の中身
                // フォント設定
                QFont relationFont = new QFont();
-               relationFont.setPixelSize(35);
+               relationFont.setPixelSize(25);
                relationFont.setBold(true);
                QFont titleFont = new QFont();
                titleFont.setPixelSize(15);
                relationFont.setBold(true);
                QFont titleFont = new QFont();
                titleFont.setPixelSize(15);
@@ -114,9 +114,9 @@ public class RensoNoteListItem extends QWidget{
                // 関連度
                double ratio = (double)relationPoints / allPointSum;
                int green = (int) (255 * (1.0 - ratio));
                // 関連度
                double ratio = (double)relationPoints / allPointSum;
                int green = (int) (255 * (1.0 - ratio));
-               painter.setPen(new QColor(255, green, 0, 120));
+               painter.setPen(new QColor(255, green, 0));
                painter.setFont(relationFont);
                painter.setFont(relationFont);
-               painter.drawText(85, size().height() - 40, size().width() - 85, 40, Qt.AlignmentFlag.AlignRight.value(), String.valueOf((int)(ratio * 100)) + "%");
+               painter.drawText(70, size().height() - 30, size().width() - 70, 30, Qt.AlignmentFlag.AlignRight.value(), String.valueOf((int)(ratio * 100)) + "%");
                // タイトル
                painter.setPen(QColor.black);
                painter.setFont(titleFont);
                // タイトル
                painter.setPen(QColor.black);
                painter.setFont(titleFont);