Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631378
TextEditorTheme.h
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.h
View Options
#ifndef TEXTEDITORTHEME_H
#define TEXTEDITORTHEME_H
#include
<QColor>
#include
<memory>
class
TextEditorTheme
;
using
TextEditorThemePtr
=
std
::
shared_ptr
<
TextEditorTheme
>
;
class
TextEditorTheme
{
public
:
QColor
fg_default
;
QColor
bg_default
;
QColor
fg_line_number
;
QColor
bg_line_number
;
QColor
fg_cursor
;
QColor
bg_current
;
QColor
bg_current_line
;
QColor
bg_current_line_number
;
QColor
bg_diff_unknown
;
QColor
bg_diff_add
;
QColor
bg_diff_del
;
public
:
TextEditorTheme
()
=
default
;
QColor
fgDefault
()
const
{
return
fg_default
;
}
QColor
bgDefault
()
const
{
return
bg_default
;
}
QColor
fgLineNumber
()
const
{
return
fg_line_number
;
}
QColor
bgLineNumber
()
const
{
return
bg_line_number
;
}
QColor
fgCursor
()
const
{
return
fg_cursor
;
}
QColor
bgCurrentLine
()
const
{
return
bg_current_line
;
}
QColor
bgCurrentLineNumber
()
const
{
return
bg_current_line_number
;
}
QColor
bgDiffUnknown
()
const
{
return
bg_diff_unknown
;
}
QColor
bgDiffAdd
()
const
{
return
bg_diff_add
;
}
QColor
bgDiffDel
()
const
{
return
bg_diff_del
;
}
static
TextEditorThemePtr
Dark
();
static
TextEditorThemePtr
Light
();
};
#endif
// TEXTEDITORTHEME_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 11:49 AM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132919
Default Alt Text
TextEditorTheme.h (1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline