Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F618352
TextEditorTheme.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
TextEditorTheme.cpp
View Options
#include
"TextEditorTheme.h"
#include
<memory>
TextEditorThemePtr
TextEditorTheme::Light
()
{
TextEditorThemePtr
t
=
std
::
make_shared
<
TextEditorTheme
>
();
t
->
fg_default
=
QColor
(
0
,
0
,
0
);
t
->
bg_default
=
QColor
(
240
,
240
,
240
);
t
->
fg_line_number
=
QColor
(
96
,
96
,
96
);
t
->
bg_line_number
=
QColor
(
208
,
208
,
208
);
t
->
fg_cursor
=
QColor
(
0
,
128
,
255
);
t
->
bg_current_line
=
QColor
(
192
,
192
,
192
);
t
->
bg_current_line_number
=
QColor
(
176
,
176
,
176
);
t
->
bg_diff_unknown
=
QColor
(
208
,
208
,
208
);
t
->
bg_diff_add
=
QColor
(
192
,
240
,
192
);
t
->
bg_diff_del
=
QColor
(
240
,
208
,
208
);
return
t
;
}
TextEditorThemePtr
TextEditorTheme::Dark
()
{
TextEditorThemePtr
t
=
std
::
make_shared
<
TextEditorTheme
>
();
t
->
fg_default
=
QColor
(
255
,
255
,
255
);
t
->
bg_default
=
QColor
(
48
,
48
,
48
);
// t->bg_default = QColor(0, 0, 64);
t
->
fg_line_number
=
QColor
(
176
,
176
,
176
);
t
->
bg_line_number
=
QColor
(
64
,
64
,
64
);
t
->
fg_cursor
=
QColor
(
0
,
128
,
255
);
t
->
bg_current_line_number
=
QColor
(
96
,
96
,
96
);
t
->
bg_diff_unknown
=
QColor
(
0
,
0
,
0
);
t
->
bg_diff_add
=
QColor
(
0
,
64
,
0
);
t
->
bg_diff_del
=
QColor
(
80
,
0
,
0
);
return
t
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 3:00 PM (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137824
Default Alt Text
TextEditorTheme.cpp (1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline