Skip to content

Commit

Permalink
Sketcher: Settings Dialog new color for dependent constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed Jan 1, 2018
1 parent 2a6f55e commit 9cf42d3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/Gui/SketcherSettings.cpp
Expand Up @@ -232,6 +232,7 @@ void SketcherSettingsColors::saveSettings()
ui->ConstrainedColor->onSave();
ui->NonDrivingConstraintColor->onSave();
ui->DatumColor->onSave();
ui->ExprBasedConstrDimColor->onSave();

ui->SketcherDatumWidth->onSave();
ui->DefaultSketcherVertexWidth->onSave();
Expand All @@ -256,6 +257,7 @@ void SketcherSettingsColors::loadSettings()
ui->ConstrainedColor->onRestore();
ui->NonDrivingConstraintColor->onRestore();
ui->DatumColor->onRestore();
ui->ExprBasedConstrDimColor->onRestore();

ui->SketcherDatumWidth->onRestore();
ui->DefaultSketcherVertexWidth->onRestore();
Expand Down
49 changes: 38 additions & 11 deletions src/Mod/Sketcher/Gui/SketcherSettingsColors.ui
Expand Up @@ -344,6 +344,33 @@
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="labelexpr">
<property name="text">
<string>Expression dependent constraint color</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="Gui::PrefColorButton" name="ExprBasedConstrDimColor">
<property name="toolTip">
<string>The color of expression dependent datum constraints in edit mode</string>
</property>
<property name="color">
<color>
<red>255</red>
<green>127</green>
<blue>38</blue>
</color>
</property>
<property name="prefEntry" stdset="0">
<cstring>ExprBasedConstrDimColor</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="label_15">
<property name="minimumSize">
<size>
Expand All @@ -356,7 +383,7 @@
</property>
</widget>
</item>
<item row="10" column="1">
<item row="11" column="1">
<widget class="Gui::PrefColorButton" name="DatumColor">
<property name="toolTip">
<string>The color of the datum portion of a driving constraint</string>
Expand All @@ -376,7 +403,7 @@
</property>
</widget>
</item>
<item row="11" column="0">
<item row="12" column="0">
<widget class="QLabel" name="label_16">
<property name="minimumSize">
<size>
Expand All @@ -389,7 +416,7 @@
</property>
</widget>
</item>
<item row="11" column="1">
<item row="12" column="1">
<widget class="Gui::PrefSpinBox" name="SketcherDatumWidth">
<property name="toolTip">
<string>The default line thickness for new shapes</string>
Expand All @@ -411,7 +438,7 @@
</property>
</widget>
</item>
<item row="12" column="0">
<item row="13" column="0">
<widget class="QLabel" name="label_12">
<property name="minimumSize">
<size>
Expand All @@ -424,7 +451,7 @@
</property>
</widget>
</item>
<item row="12" column="1">
<item row="13" column="1">
<widget class="Gui::PrefSpinBox" name="DefaultSketcherVertexWidth">
<property name="toolTip">
<string>The default line thickness for new shapes</string>
Expand All @@ -446,7 +473,7 @@
</property>
</widget>
</item>
<item row="13" column="0">
<item row="14" column="0">
<widget class="QLabel" name="label_13">
<property name="minimumSize">
<size>
Expand All @@ -459,7 +486,7 @@
</property>
</widget>
</item>
<item row="13" column="1">
<item row="14" column="1">
<widget class="Gui::PrefSpinBox" name="DefaultSketcherLineWidth">
<property name="toolTip">
<string>The default line thickness for new shapes</string>
Expand All @@ -481,7 +508,7 @@
</property>
</widget>
</item>
<item row="14" column="0">
<item row="15" column="0">
<widget class="QLabel" name="label_5">
<property name="minimumSize">
<size>
Expand All @@ -494,7 +521,7 @@
</property>
</widget>
</item>
<item row="14" column="1">
<item row="15" column="1">
<widget class="Gui::PrefColorButton" name="CursorTextColor">
<property name="color">
<color>
Expand All @@ -511,7 +538,7 @@
</property>
</widget>
</item>
<item row="15" column="0">
<item row="16" column="0">
<widget class="QLabel" name="label_19">
<property name="minimumSize">
<size>
Expand All @@ -524,7 +551,7 @@
</property>
</widget>
</item>
<item row="15" column="1">
<item row="16" column="1">
<widget class="Gui::PrefColorButton" name="CursorCrosshairColor">
<property name="color">
<color>
Expand Down

0 comments on commit 9cf42d3

Please sign in to comment.