lightPink = Color { 255, 182, 193 }
};
-// TODO: We really should improve on this, only activeBorder has been used so far
+// TODO: We really should improve on this, only formColor has been used so far
public enum SystemColor : Color
{
// activeBorder = Color { 212, 208, 200 },
activeBorder = Color { 229, 234, 245 },
+ formColor = Color { 229, 234, 245 },
control = Color { 212, 208, 200 },
controlLight = Color { 212, 208, 200 },
inactiveBorder = Color { 212, 208, 200 },
Window pullDown
{
master = this, interim = true, autoCreate = false, minSize = { 204, 222 },
- background = activeBorder, borderStyle = contour|bevel;
+ background = formColor, borderStyle = contour|bevel;
bool OnKeyDown(Key key, unichar ch)
{
{
ColorAlpha foreground = this.foreground;
- SetForeground(inner ? Color { 128,128,128 } : activeBorder);
+ SetForeground(inner ? Color { 128,128,128 } : formColor);
HLine(x, x+w - 2, y);
VLine(y+1, y+h - 2, x);
HLine(x+1, x+w-3, y+1);
VLine(y+2, y+h-3, x+1);
- SetForeground(inner ? activeBorder : Color { 128,128,128 } );
+ SetForeground(inner ? formColor : Color { 128,128,128 } );
HLine(x+1, x+w-2, y + h -2);
VLine(y+1, y+h-3, x + w - 2);
editBox.Printf(" caption = \"%s\";\n", name);
//editBox.Printf(" background = Color { 212, 208, 200 };\n");
- editBox.Printf(" background = activeBorder;\n");
+ editBox.Printf(" background = formColor;\n");
editBox.Printf(" borderStyle = sizable;\n");
editBox.Printf(" hasMaximize = true;\n");
editBox.Printf(" hasMinimize = true;\n");
Button()
{
- background = activeBorder;
+ background = formColor;
foreground = black;
//opacity = 0;
//drawBehind = true;
textColor[over] = black;
textColor[disabled] = Color { 85, 85, 85 };
- colors[up] = activeBorder;
- colors[down] = activeBorder;
- colors[over] = activeBorder;
+ colors[up] = formColor;
+ colors[down] = formColor;
+ colors[over] = formColor;
colors[disabled] = white;
colors[upChecked] = Color { 233,229,221 };
- colors[overChecked] = activeBorder;
+ colors[overChecked] = formColor;
colors[downChecked] = Color { 233,229,221 };
- colors[disabledChecked] = activeBorder;
+ colors[disabledChecked] = formColor;
}
Bitmap GetButtonBitmap()
int start = (clientSize.h - height) / 2;
if(!isEnabled)
- // surface.SetBackground(activeBorder);
+ // surface.SetBackground(formColor);
surface.SetBackground(gainsboro);
else if(active && !text)
- surface.SetBackground((offset ? activeBorder : Color { 0,0,170 }));
+ surface.SetBackground((offset ? formColor : Color { 0,0,170 }));
else
- surface.SetBackground((offset ? activeBorder : background /*white*/));
+ surface.SetBackground((offset ? formColor : background /*white*/));
surface.Area(2, start+2,height-3,start+height-3);
surface.SetForeground(Color { 85, 85, 85 });
Abs(selectionBackground.g - property::background.g) +
Abs(selectionBackground.b - property::background.b) < 92)
{
- selectionBackground = activeBorder;
+ selectionBackground = formColor;
selectionForeground = selectionColor ? selectionColor : SELECTION_COLOR;
}
if(!isEnabled)
{
- surface.SetBackground(activeBorder);
+ surface.SetBackground(formColor);
surface.Area(0,0,clientSize.w, clientSize.h);
}
if(style.collapse && !(style.treeBranch) && rows.first)
{
x += 15;
- surface.SetBackground(activeBorder);
+ surface.SetBackground(formColor);
surface.Area(-scroll.x, 0, x, clientSize.h);
}
- surface.SetForeground(activeBorder);
+ surface.SetForeground(formColor);
for(row = firstRowShown; row; row = row.GetNextRow())
{
y += rowHeight;
// Draw the current row background
if(row.header)
{
- background = activeBorder;
- surface.SetBackground(activeBorder);
+ background = formColor;
+ surface.SetBackground(formColor);
surface.Area(rowStart, y, clientSize.w, (y + rowHeight) - 1);
foreground = branchesColor;
}
if(dataDisplayFlags.selected && (isActive || style.alwaysHL || (style.alwaysEdit && style.fullRowSelect)))
{
if(!isActive && style.alwaysEdit)
- background = activeBorder;
+ background = formColor;
else
background = selectionColor ? selectionColor : SELECTION_COLOR;
if(style.fullRowSelect)
}
if(!isActive && dataDisplayFlags.selected && style.alwaysEdit && field.editable)
- background = activeBorder;
+ background = formColor;
if(!dataDisplayFlags.firstField && !dataDisplayFlags.fullRow)
{
- background = activeBorder;
+ background = formColor;
foreground = this.background;
}
surface.SetForeground(row.header ? headerCollapseForeground : this.foreground);
surface.Rectangle(collapseRowStart + 3 + plusIndent, y + PLUSY, collapseRowStart + 11 + plusIndent, y + PLUSY + 8);
- surface.SetBackground(row.header ? (activeBorder) : (this.background)); //white
+ surface.SetBackground(row.header ? (formColor) : (this.background)); //white
surface.Area(collapseRowStart + 4 + plusIndent, y + PLUSY + 1, collapseRowStart + 10 + plusIndent, y + PLUSY + 7);
surface.HLine(collapseRowStart + 5 + plusIndent, collapseRowStart + 9 + plusIndent, y+PLUSY+4);
if(ITEM_DISABLED(item) && selected == ptr)
{
- surface.SetForeground(activeBorder);
+ surface.SetForeground(formColor);
Interface::WriteKeyedText(surface, x + bitmapOffset + 5,
textY, ITEM_TEXT(item), ITEM_HOTKEY(item));
}
surface.VLine(y+(rh - 8)/2, y+(rh - 8)/2+7, clientSize.w-10);
surface.SetForeground(Color { 85, 85, 85 });
surface.DrawLine(clientSize.w-10, y+(rh - 8)/2, clientSize.w-4, y+rh / 2);
- surface.SetForeground(activeBorder);
+ surface.SetForeground(formColor);
surface.DrawLine(clientSize.w-10, y+(rh - 8)/2+7, clientSize.w-4, y+rh / 2);
*/
}
{
bool sliding;
int startPos, startX;
- background = activeBorder, borderStyle = bevel;
+ background = formColor, borderStyle = bevel;
anchor = { top = -2, bottom = -2 }, stayOnTop = true, inactive = true;
size = { w = defaultToolSize };
cursor = ((GuiApplication)__thisModule.application).GetCursor(sizeWE);
{
if(!isEnabled)
{
- surface.SetBackground(activeBorder);
+ surface.SetBackground(formColor);
surface.Area(0, 0, clientSize.w, clientSize.h);
}
else
{
class_property(icon) = "<:ecere>controls/progressBar.png";
- background = activeBorder;
+ background = formColor;
borderStyle = deep;
public:
else
{
// What to do here?
- upBtn.background = activeBorder;
- downBtn.background = activeBorder;
- thumb.background = activeBorder;
+ upBtn.background = formColor;
+ downBtn.background = formColor;
+ thumb.background = formColor;
background = Color { 224, 224, 224 };
}
if(sbStyle.vertical)
public class SelectorBar : Stacker
{
direction = horizontal;
- background = activeBorder;
+ background = formColor;
//tabCycle = true;
//isActiveClient = true;
{
class_property(icon) = "<:ecere>controls/statusBar.png";
- background = activeBorder;
+ background = formColor;
nonClient = true;
inactive = true;
anchor = Anchor { left = 0, right = 0, bottom = 0 };
tabCycle = true;
int numTabs;
- background = white;//activeBorder;
+ background = white;//formColor;
Window tabButtons { this, opacity = 0, drawBehind = true };
{
if(sbh && sbh.visible && sbv && sbv.visible)
{
- surface.SetBackground(activeBorder);
+ surface.SetBackground(formColor);
surface.Area(
clientStart.x + clientSize.w,
clientStart.y + clientSize.h,
public class ColorPicker : Window
{
- hasClose = true, tabCycle = true, background = activeBorder;
+ hasClose = true, tabCycle = true, background = formColor;
autoCreate = false;
clientSize.h = 275, size.w = 500;
text = $"Select a color...";
if(((ColorPicker)parent).hasAlpha && opacity < 1)
{
int x, y;
- surface.background = activeBorder;
+ surface.background = formColor;
surface.Clear(colorBuffer);
surface.background = white;
for(y = 0; y < 50; y+=10)
public class FileDialog : Window
{
text = $"Select a file...";
- background = activeBorder;
+ background = formColor;
hasClose = true;
borderStyle = sizable;
tabCycle = true;
public class CreateDirectoryDialog : Window
{
- background = activeBorder;
+ background = formColor;
minClientSize = Size { 240, 100 };
tabCycle = true;
hasClose = true;
hasClose = true;
tabCycle = true;
borderStyle = fixed;
- background = activeBorder;
+ background = formColor;
minClientSize = { 400, 112 };
public:
minClientSize = { 300, 80 };
hasClose = true;
tabCycle = true;
- background = activeBorder;
+ background = formColor;
public:
property int line { set { if(value) lineBox.Printf("%d", value); else lineBox.Clear(); } get { return line; } };
public enum MessageBoxType { ok, yesNo, okCancel, yesNoCancel };
public class MessageBox : Window
{
- background = activeBorder;
+ background = formColor;
hasClose = true;
tabCycle = true;
nativeDecorations = true;
hasClose = true;
tabCycle = true;
borderStyle = fixed;
- background = activeBorder;
+ background = formColor;
minClientSize = { 432, 144 };
text = $"Replace";
tabCycle = true;
borderStyle = sizable;
hasClose = true;
- background = activeBorder;
+ background = formColor;
private:
bool OnCreate()
{
// Frame for ES_CAPTION windows
surface.Bevel(false, 0, 0, size.w, size.h);
- surface.SetForeground(activeBorder);
+ surface.SetForeground(formColor);
surface.Rectangle(2, 2, size.w-3, size.h-3);
// Resizeable frame is 1 pixel thicker
GRADIENT_SMOOTHNESS, GRADIENT_DIRECTION,
border, top, size.w - border - 1, top + CAPTION - 2);
- surface.SetForeground(activeBorder);
+ surface.SetForeground(formColor);
if(state != minimized)
surface.HLine(border, size.w-border-1, top + CAPTION-1);
{
if(sbh && sbh.visible && sbv && sbv.visible)
{
- surface.SetBackground(activeBorder);
+ surface.SetBackground(formColor);
surface.Area(
clientStart.x + clientSize.w,
clientStart.y + clientSize.h,
int start = (clientSize.h - height) / 2;
if(!isEnabled)
- // surface.SetBackground(activeBorder);
+ // surface.SetBackground(formColor);
surface.SetBackground(gainsboro);
else if(active && !text)
- surface.SetBackground((offset ? activeBorder : Color { 0,0,170 }));
+ surface.SetBackground((offset ? formColor : Color { 0,0,170 }));
else
- surface.SetBackground((offset ? activeBorder : white));
+ surface.SetBackground((offset ? formColor : white));
surface.Area(2, start+2,height-3,start+height-3);
surface.SetForeground(Color { 85, 85, 85 });