configurable stack frame color
This commit is contained in:
parent
71f6428064
commit
3c3f4a1ae4
|
@ -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", "");
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -126,6 +126,7 @@ private:
|
|||
|
||||
GotoDialog* mGoto;
|
||||
CPUMultiDump* mMultiDump;
|
||||
QColor mStackFrameColor;
|
||||
};
|
||||
|
||||
#endif // CPUSTACK_H
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue