1
0
Fork 0

configurable stack frame color

This commit is contained in:
torusrxxx 2016-07-27 22:43:55 +08:00
parent 71f6428064
commit 3c3f4a1ae4
4 changed files with 5 additions and 1 deletions

View File

@ -518,6 +518,7 @@ void AppearanceDialog::colorInfoListInit()
colorInfoListAppend(tr("Addresses"), "StackAddressColor", "StackAddressBackgroundColor");
colorInfoListAppend(tr("Selected Addresses"), "StackSelectedAddressColor", "StackSelectedAddressBackgroundColor");
colorInfoListAppend(tr("Labels"), "StackLabelColor", "StackLabelBackgroundColor");
colorInfoListAppend(tr("Stack Frame Line"), "StackFrameColor", "");
colorInfoListAppend(tr("HexEdit:"), "", "");
colorInfoListAppend(tr("Text"), "HexEditTextColor", "");

View File

@ -59,6 +59,7 @@ void CPUStack::updateColors()
backgroundColor = ConfigColor("StackBackgroundColor");
textColor = ConfigColor("StackTextColor");
selectionColor = ConfigColor("StackSelectionColor");
mStackFrameColor = ConfigColor("StackFrameColor");
}
void CPUStack::updateFonts()
@ -463,7 +464,7 @@ QString CPUStack::paintContent(QPainter* painter, dsint rowBase, int rowOffset,
return HexDump::paintContent(painter, rowBase, rowOffset, 1, x, y, w, h);
else
{
painter->setPen(QPen(QColor("#000000"), 2));
painter->setPen(QPen(mStackFrameColor, 2));
int height = getRowHeight();
int halfHeight = height / 2;
int width = 6;

View File

@ -126,6 +126,7 @@ private:
GotoDialog* mGoto;
CPUMultiDump* mMultiDump;
QColor mStackFrameColor;
};
#endif // CPUSTACK_H

View File

@ -153,6 +153,7 @@ Configuration::Configuration() : QObject(), noMoreMsgbox(false)
defaultColors.insert("StackSelectedAddressBackgroundColor", Qt::transparent);
defaultColors.insert("StackLabelColor", QColor("#FF0000"));
defaultColors.insert("StackLabelBackgroundColor", Qt::transparent);
defaultColors.insert("StackFrameColor", QColor("#000000"));
defaultColors.insert("HexEditTextColor", QColor("#000000"));
defaultColors.insert("HexEditWildcardColor", QColor("#FF0000"));