|
|
1.1 root 1: //
2: // nono
1.1.1.2 root 3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #pragma once
8:
1.1.1.3 ! root 9: // カラーユニバーサルデザイン推奨配色セット (ver.4)
1.1 root 10: // https://jfly.uni-koeln.de/colorset/
1.1.1.3 ! root 11: //
! 12: // 基本はこの配色のみを用いること。
! 13: // ただし色を区別する(色の違いを認識できる)必要のない箇所ならここにない
! 14: // 色も使用可とする。
1.1 root 15:
16: // 結局 define が最強…
17: // コンストラクトしたところでたぶんたいしたコストじゃないと思うので
18: // 必要なところでつどつどどっかから RGB 引いてきて、てんでバラバラに
19: // 書くよりはマシというくらいにしておく。
20:
21: // アクセントカラー (文字など)
22: #define UD_RED wxColour(255, 75, 0) // 赤
23: #define UD_YELLOW wxColour(255, 241, 0) // 黄色
24: #define UD_GREEN wxColour( 3, 175, 122) // 緑
25: #define UD_BLUE wxColour( 0, 90, 255) // 青
26: #define UD_SKYBLUE wxColour( 77, 196, 255) // 空色
27: #define UD_PINK wxColour(255, 128, 130) // ピンク
28: #define UD_ORANGE wxColour(246, 170, 0) // オレンジ
29: #define UD_PURPLE wxColour(153, 0, 153) // 紫
30: #define UD_BROWN wxColour(128, 64, 0) // 茶色
31:
32: // ベースカラー (背景など)
33: #define UD_LIGHT_PINK wxColour(255, 202, 191) // 明るいピンク
34: #define UD_CREAM wxColour(255, 255, 128) // クリーム
35: #define UD_YELLOW_GREEN wxColour(216, 242, 85) // 明るい黄緑
36: #define UD_LIGHT_SKYBLUE wxColour(191, 228, 255) // 明るい空色
37: #define UD_BEIGE wxColour(255, 202, 128) // ベージュ
38: #define UD_LIGHT_GREEN wxColour(119, 217, 168) // 明るい緑
39: #define UD_LIGHT_PURPLE wxColour(201, 172, 230) // 明るい紫
40:
41: // 無彩色
42: #define UD_LIGHT_GREY wxColour(200, 200, 203) // 明るいグレー
43: #define UD_GREY wxColour(132, 145, 158) // グレー
1.1.1.3 ! root 44:
! 45: // メモ。
! 46: // 基本的に wxBLACK, wxWHITE 以外の wxWidgets 定義色を使うことはないが
! 47: // wxOSX(-3.0.2) の wxLIGHT_GREY は値が(色も透明度も)正しくないので避ける。
! 48:
! 49: //
! 50: // 以下独自色
! 51: //
! 52:
! 53: // パネルの背景色。
! 54: // パネルの背景色は本来 wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) で
! 55: // 取得できる色だと思うが、これが環境依存となると前景色との兼ね合いも再現
! 56: // できなくなるということなのでこれには依存せず、背景色は自分で確定させる。
! 57: // UD_LIGHT_GREY は背景用ではないので背景色にするには暗い。
! 58: // wxGTK(2) の wxLIGHT_GREY は (211, 211, 211) で、これも結構暗め。
! 59: // wxGTK3 はほぼ白(250) で、これは明るすぎて好みではない。
! 60: #define BGPANEL wxColour(224, 224, 227)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.