mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +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
|
@ -978,7 +978,7 @@ namespace Beefy.theme.dark
|
|||
public float mDragOffset = 0;
|
||||
public bool mShowColumnGrid;
|
||||
public bool mShowGridLines;
|
||||
public Color mGridLinesColor = 0x0CFFFFFF;
|
||||
public Color mGridLinesColor;
|
||||
public bool mShowHeader = true;
|
||||
public bool mEndInEllipsis;
|
||||
public bool mWordWrap;
|
||||
|
@ -1002,6 +1002,7 @@ namespace Beefy.theme.dark
|
|||
{
|
||||
mFont = DarkTheme.sDarkTheme.mSmallFont;
|
||||
mBoldFont = DarkTheme.sDarkTheme.mSmallBoldFont;
|
||||
mGridLinesColor = DarkTheme.COLOR_GRID;
|
||||
SetShowHeader(true);
|
||||
|
||||
}
|
||||
|
@ -1093,7 +1094,7 @@ namespace Beefy.theme.dark
|
|||
|
||||
if ((mShowColumnGrid) && (columnIdx < mColumns.Count - 1))
|
||||
{
|
||||
DrawColumnGridColumn(g, column.mWidth, DarkTheme.sUnitSize, mHeight - DarkTheme.sUnitSize - 1, 0xFF707070);
|
||||
DrawColumnGridColumn(g, column.mWidth, DarkTheme.sUnitSize, mHeight - DarkTheme.sUnitSize - 1, DarkTheme.COLOR_GRID);
|
||||
}
|
||||
|
||||
float sortArrowX = g.mFont.GetWidth(column.mLabel) + DarkTheme.sUnitSize/2;
|
||||
|
@ -1152,7 +1153,7 @@ namespace Beefy.theme.dark
|
|||
|
||||
if ((mShowColumnGrid) && (columnIdx < mColumns.Count - 1))
|
||||
{
|
||||
DrawColumnGridColumn(g, curX, GS!(4), mHeight - GS!(8), 0xFF888888);
|
||||
DrawColumnGridColumn(g, curX, GS!(4), mHeight - GS!(8), DarkTheme.COLOR_GRID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -200,6 +200,9 @@ namespace Beefy.theme.dark
|
|||
public static uint32 COLOR_TEXT_DISABLED = 0xFFA8A8A8;
|
||||
public static uint32 COLOR_TEXT_SELECTED = 0xFF2f5c88;
|
||||
public static uint32 COLOR_WINDOW = 0xFF595962;
|
||||
public static uint32 COLOR_DIALOG_OUTLINE_IN = 0xFF404040;
|
||||
public static uint32 COLOR_DIALOG_OUTLINE_OUT = 0xFF202020;
|
||||
public static uint32 COLOR_GRID = 0x0CFFFFFF;
|
||||
public static uint32 COLOR_BKG = 0xFF26262A;
|
||||
public static uint32 COLOR_SELECTED_OUTLINE = 0xFFCFAE11;
|
||||
public static uint32 COLOR_MENU_FOCUSED = 0xFFE5A910;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue