-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nakst
committed
Oct 28, 2023
1 parent
f33c563
commit 6a1b692
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,15 +424,15 @@ bool INIParse(INIState *s) { | |
|
||
int ModifiedRowMessage(UIElement *element, UIMessage message, int di, void *dp) { | ||
if (message == UI_MSG_PAINT) { | ||
UIDrawBorder((UIPainter *) dp, element->bounds, 0x00FF00, UI_RECT_1(2)); | ||
UIDrawBorder((UIPainter *) dp, element->bounds, ui.theme.selected, UI_RECT_1(2)); | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
int TrafficLightMessage(UIElement *element, UIMessage message, int di, void *dp) { | ||
if (message == UI_MSG_PAINT) { | ||
UIDrawRectangle((UIPainter *) dp, element->bounds, programRunning ? 0xFF0000 : 0x00FF00, ui.theme.border, UI_RECT_1(1)); | ||
UIDrawRectangle((UIPainter *) dp, element->bounds, programRunning ? ui.theme.accent1 : ui.theme.accent2, ui.theme.border, UI_RECT_1(1)); | ||
} | ||
|
||
return 0; | ||
|
@@ -1161,7 +1161,8 @@ void CommandDonate(void *) { | |
const char *themeItems[] = { | ||
"panel1", "panel2", "selected", "border", "text", "textDisabled", "textSelected", | ||
"buttonNormal", "buttonHovered", "buttonPressed", "buttonDisabled", "textboxNormal", "textboxFocused", | ||
"codeFocused", "codeBackground", "codeDefault", "codeComment", "codeString", "codeNumber", "codeLineNumber", "codeOperator", "codePreprocessor", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nakst
Owner
|
||
"codeFocused", "codeBackground", "codeDefault", "codeComment", "codeString", "codeNumber", "codeOperator", "codePreprocessor", | ||
"accent1", "accent2", | ||
}; | ||
|
||
void SettingsAddTrustedFolder() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By removing
codeLineNumber
you render porting any theme/scheme that has different color for line numbers and comments (and a lot of them do) impossible. You should probably google like vim color schemes and look for those that don't have the same color for color numbers and commets to see what am talking about.