mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-01 22:05:59 +02:00
Make grid and outline colors configurable.
This commit is contained in:
parent
e064020c06
commit
07ca3a319d
7 changed files with 22 additions and 12 deletions
|
@ -135,9 +135,6 @@ namespace IDE
|
|||
public static readonly String sPlatform32Name = "Unknown32";
|
||||
#endif
|
||||
|
||||
public const uint32 cDialogOutlineLightColor = 0xFF404040;
|
||||
public const uint32 cDialogOutlineDarkColor = 0xFF202020;
|
||||
|
||||
public static bool sExitTest;
|
||||
|
||||
public Verbosity mVerbosity = .Default;
|
||||
|
|
|
@ -307,8 +307,8 @@ namespace IDE
|
|||
|
||||
public static void DrawOutline(Graphics g, Widget widget, int inflateX = 0, int32 inflateY = 0)
|
||||
{
|
||||
DrawOutline(g, widget, inflateX, inflateY, IDEApp.cDialogOutlineLightColor);
|
||||
DrawOutline(g, widget, inflateX - 1, inflateY - 1, IDEApp.cDialogOutlineDarkColor);
|
||||
DrawOutline(g, widget, inflateX, inflateY, DarkTheme.COLOR_DIALOG_OUTLINE_OUT);
|
||||
DrawOutline(g, widget, inflateX - 1, inflateY - 1, DarkTheme.COLOR_DIALOG_OUTLINE_IN);
|
||||
}
|
||||
|
||||
public static void ClampMenuCoords(ref float x, ref float y, ScrollableWidget scrollableWidget, Insets insets = null)
|
||||
|
|
|
@ -314,6 +314,9 @@ namespace IDE
|
|||
public Color mTextDisabled = 0xFFA8A8A8;
|
||||
public Color mTextSelected = 0xFF2f5c88;
|
||||
public Color mWindow = 0xFF44444D;
|
||||
public Color mDialogOutlineIn = 0xFF404040;
|
||||
public Color mDialogOutlineOut = 0xFF202020;
|
||||
public Color mGrid = 0x0CFFFFFF;
|
||||
public Color mBackground = 0xFF1C1C24;
|
||||
public Color mSelectedOutline = 0xFFCFAE11;
|
||||
public Color mMenuFocused = 0xFFE5A910;
|
||||
|
@ -369,6 +372,9 @@ namespace IDE
|
|||
GetColor("TextDisabled", ref mTextDisabled);
|
||||
GetColor("TextSelected", ref mTextSelected);
|
||||
GetColor("Window", ref mWindow);
|
||||
GetColor("DialogOutlineIn", ref mDialogOutlineIn);
|
||||
GetColor("DialogOutlineOut", ref mDialogOutlineOut);
|
||||
GetColor("Grid", ref mGrid);
|
||||
GetColor("Background", ref mBackground);
|
||||
GetColor("SelectedOutline", ref mSelectedOutline);
|
||||
GetColor("MenuFocused", ref mMenuFocused);
|
||||
|
@ -457,6 +463,9 @@ namespace IDE
|
|||
DarkTheme.COLOR_TEXT_DISABLED = mTextDisabled;
|
||||
DarkTheme.COLOR_TEXT_SELECTED = mTextSelected;
|
||||
DarkTheme.COLOR_WINDOW = mWindow;
|
||||
DarkTheme.COLOR_DIALOG_OUTLINE_IN = mDialogOutlineIn;
|
||||
DarkTheme.COLOR_DIALOG_OUTLINE_OUT = mDialogOutlineOut;
|
||||
DarkTheme.COLOR_GRID = mGrid;
|
||||
DarkTheme.COLOR_BKG = mBackground;
|
||||
DarkTheme.COLOR_SELECTED_OUTLINE = mSelectedOutline;
|
||||
DarkTheme.COLOR_MENU_FOCUSED = mMenuFocused;
|
||||
|
|
|
@ -308,8 +308,8 @@ namespace IDE.ui
|
|||
//Outline(g, mCategorySelector, 0, 0, 0xFF404040);
|
||||
//Outline(g, mCategorySelector, -1, -1, 0xFF202020);
|
||||
|
||||
Outline(g, mFileList, 0, 0, IDEApp.cDialogOutlineLightColor);
|
||||
Outline(g, mFileList, -1, -1, IDEApp.cDialogOutlineDarkColor);
|
||||
Outline(g, mFileList, 0, 0, DarkTheme.COLOR_DIALOG_OUTLINE_OUT);
|
||||
Outline(g, mFileList, -1, -1, DarkTheme.COLOR_DIALOG_OUTLINE_IN);
|
||||
}
|
||||
|
||||
void CheckFileDates()
|
||||
|
|
|
@ -365,8 +365,8 @@ namespace IDE.ui
|
|||
//Outline(g, mCategorySelector, 0, 0, 0xFF404040);
|
||||
//Outline(g, mCategorySelector, -1, -1, 0xFF202020);
|
||||
|
||||
Outline(g, mFileList, 0, 0, IDEApp.cDialogOutlineLightColor);
|
||||
Outline(g, mFileList, -1, -1, IDEApp.cDialogOutlineDarkColor);
|
||||
Outline(g, mFileList, 0, 0, DarkTheme.COLOR_DIALOG_OUTLINE_OUT);
|
||||
Outline(g, mFileList, -1, -1, DarkTheme.COLOR_DIALOG_OUTLINE_IN);
|
||||
}
|
||||
|
||||
void CheckFileDates()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue