mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 20:18:01 +02:00
Theme update
This commit is contained in:
parent
9650e10e88
commit
1523000e80
16 changed files with 80 additions and 30 deletions
|
@ -266,11 +266,18 @@ namespace IDE
|
|||
public class Colors
|
||||
{
|
||||
public Color mText = 0xFFFFFFFF;
|
||||
public Color mWindow = 0xFF595962;
|
||||
public Color mBackground = 0xFF26262A;
|
||||
public Color mWindow = 0xFF44444D;
|
||||
public Color mBackground = 0xFF1C1C24;
|
||||
public Color mSelectedOutline = 0xFFCFAE11;
|
||||
public Color mMenuFocused = 0xFFE5A910;
|
||||
public Color mMenuSelected = 0xFFCB9B80;
|
||||
public Color mAutoCompleteSubText = 0xFFB0B0B0;
|
||||
public Color mAutoCompleteDocText = 0xFFC0C0C0;
|
||||
public Color mAutoCompleteActiveText = 0xFFB0B0FF;
|
||||
public Color mWorkspaceDisabledText = 0xFFA0A0A0;
|
||||
public Color mWorkspaceFailedText = 0xFFE04040;
|
||||
public Color mWorkspaceManualIncludeText = 0xFFE0E0FF;
|
||||
public Color mWorkspaceIgnoredText = 0xFF909090;
|
||||
|
||||
public Color mCode = 0xFFFFFFFF;
|
||||
public Color mKeyword = 0xFFE1AE9A;
|
||||
|
@ -305,6 +312,9 @@ namespace IDE
|
|||
GetColor("SelectedOutline", ref mSelectedOutline);
|
||||
GetColor("MenuFocused", ref mMenuFocused);
|
||||
GetColor("MenuSelected", ref mMenuSelected);
|
||||
GetColor("AutoCompleteSubText", ref mAutoCompleteSubText);
|
||||
GetColor("AutoCompleteDocText", ref mAutoCompleteDocText);
|
||||
GetColor("AutoCompleteActiveText", ref mAutoCompleteActiveText);
|
||||
|
||||
GetColor("Code", ref mCode);
|
||||
GetColor("Keyword", ref mKeyword);
|
||||
|
|
|
@ -697,7 +697,7 @@ namespace IDE.ui
|
|||
using (g.PushColor(0xFFFFFFFF))
|
||||
g.DrawBox(DarkTheme.sDarkTheme.GetImage(.Menu), drawX, drawY, mRightBoxAdjust - GS!(8), drawHeight - GS!(8));
|
||||
|
||||
using (g.PushColor(0xFFC0C0C0))
|
||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteDocText))
|
||||
g.DrawString(docParser.ShowDocString, drawX + GS!(8), drawY + GS!(4), .Left, mDocWidth - GS!(20), .Wrap);
|
||||
}
|
||||
}
|
||||
|
@ -923,7 +923,7 @@ namespace IDE.ui
|
|||
numStr.AppendF("{0}/{1}", mSelectIdx + 1, mEntryList.Count);
|
||||
if (g != null)
|
||||
{
|
||||
using (g.PushColor(0xFFB0B0B0))
|
||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteSubText))
|
||||
g.DrawString(numStr, curX, curY);
|
||||
}
|
||||
curX += font.GetWidth(numStr) + GS!(8);
|
||||
|
@ -979,7 +979,7 @@ namespace IDE.ui
|
|||
|
||||
if (g != null)
|
||||
{
|
||||
using (g.PushColor(((sectionIdx == cursorSection) && (isParam)) ? 0xFFB0B0FF : 0xFFFFFFFF))
|
||||
using (g.PushColor(((sectionIdx == cursorSection) && (isParam)) ? gApp.mSettings.mUISettings.mColors.mAutoCompleteActiveText : gApp.mSettings.mUISettings.mColors.mText))
|
||||
g.DrawString(sectionStr, curX, curY);
|
||||
}
|
||||
curX += sectionWidth;
|
||||
|
@ -1015,7 +1015,7 @@ namespace IDE.ui
|
|||
curY += font.GetLineSpacing() + GS!(4);
|
||||
if (g != null)
|
||||
{
|
||||
using (g.PushColor(0xFFC0C0C0))
|
||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteDocText))
|
||||
docHeight = g.DrawString(docString, curX, curY, .Left, maxDocWidth, .Wrap);
|
||||
}
|
||||
else
|
||||
|
@ -1052,12 +1052,12 @@ namespace IDE.ui
|
|||
curY += font.GetLineSpacing() + GS!(4);
|
||||
if (g != null)
|
||||
{
|
||||
using (g.PushColor(0xFFFFFFFF))
|
||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mText))
|
||||
{
|
||||
g.DrawString(scope String(paramName.Length + 1)..AppendF("{0}:", paramName), curX, curY, .Left, mWidth, .Ellipsis);
|
||||
}
|
||||
|
||||
using (g.PushColor(0xFFC0C0C0))
|
||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteDocText))
|
||||
{
|
||||
g.DrawString(paramDoc, curX + font.GetWidth(paramName) + font.GetWidth(": "), curY, .Left, mWidth, .Ellipsis);
|
||||
}
|
||||
|
|
|
@ -40,9 +40,7 @@ namespace IDE.ui
|
|||
|
||||
public override void Draw(Graphics g)
|
||||
{
|
||||
using (g.PushColor(0xFFF0BFA4))
|
||||
g.DrawBox(DarkTheme.sDarkTheme.GetImage(DarkTheme.ImageIdx.VertScrollbarThumb), 0, 0, mWidth, mHeight);
|
||||
|
||||
g.DrawBox(DarkTheme.sDarkTheme.GetImage(DarkTheme.ImageIdx.PanelHeader), 0, 0, mWidth, mHeight);
|
||||
g.SetFont(DarkTheme.sDarkTheme.mSmallFont);
|
||||
float y = GS!(6);
|
||||
using (g.PushColor(0xFFFFFFFF))
|
||||
|
|
|
@ -57,14 +57,14 @@ namespace IDE.ui
|
|||
if ((projectItem != null) && (projectItem.mParentFolder != null))
|
||||
{
|
||||
if (projectItem.mIncludeKind == .Manual)
|
||||
color = Color.Mult(color, 0xFFE0E0FF);
|
||||
color = Color.Mult(color, gApp.mSettings.mUISettings.mColors.mWorkspaceManualIncludeText);
|
||||
else if (projectItem.mIncludeKind == .Ignore)
|
||||
color = Color.Mult(color, 0xFF909090);
|
||||
color = Color.Mult(color, gApp.mSettings.mUISettings.mColors.mWorkspaceIgnoredText);
|
||||
|
||||
if (let projectSource = projectItem as ProjectSource)
|
||||
{
|
||||
if (projectSource.mLoadFailed)
|
||||
color = Color.Mult(color, 0xFFFF0000);
|
||||
color = Color.Mult(color, gApp.mSettings.mUISettings.mColors.mWorkspaceFailedText);
|
||||
}
|
||||
|
||||
mTextColor = color;
|
||||
|
@ -342,8 +342,8 @@ namespace IDE.ui
|
|||
item.mOnMouseClick.Add(new => ListViewItemClicked);
|
||||
UpdateColors();
|
||||
DarkListViewItem listViewItem = (DarkListViewItem)item;
|
||||
listViewItem.mFocusColor = 0xFFA0A0A0;
|
||||
listViewItem.mSelectColor = 0xFFA0A0A0;
|
||||
listViewItem.mFocusColor = gApp.mSettings.mUISettings.mColors.mWorkspaceDisabledText;
|
||||
listViewItem.mSelectColor = gApp.mSettings.mUISettings.mColors.mWorkspaceDisabledText;
|
||||
}
|
||||
|
||||
void UpdateColors()
|
||||
|
@ -1960,9 +1960,9 @@ namespace IDE.ui
|
|||
listViewItem.mIsBold = checkProject == IDEApp.sApp.mWorkspace.mStartupProject;
|
||||
|
||||
var projectOptions = IDEApp.sApp.GetCurProjectOptions(checkProject);
|
||||
listViewItem.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, (projectOptions != null) ? Color.White : 0xFFA0A0A0);
|
||||
listViewItem.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, (projectOptions != null) ? gApp.mSettings.mUISettings.mColors.mText : gApp.mSettings.mUISettings.mColors.mWorkspaceDisabledText);
|
||||
if (checkProject.mFailed)
|
||||
listViewItem.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, 0xFFE04040);
|
||||
listViewItem.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, gApp.mSettings.mUISettings.mColors.mWorkspaceFailedText);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue