Skip to content

Commit

Permalink
[Gui] background default colors
Browse files Browse the repository at this point in the history
- for better contrast and "fresher" look, see developers forum
  • Loading branch information
donovaly committed Aug 18, 2022
1 parent 8b056f1 commit 1efb050
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/Gui/DlgSettingsViewColor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@
</property>
<property name="color">
<color>
<red>51</red>
<green>51</green>
<blue>101</blue>
<red>150</red>
<green>150</green>
<blue>170</blue>
</color>
</property>
<property name="prefEntry" stdset="0">
Expand Down Expand Up @@ -336,9 +336,9 @@
</property>
<property name="color">
<color>
<red>151</red>
<green>151</green>
<blue>170</blue>
<red>212</red>
<green>212</green>
<blue>200</blue>
</color>
</property>
<property name="prefEntry" stdset="0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@
<FCBool Name="UseBackgroundColorMid" Value="0"/>
<FCBool Name="RandomColor" Value="0"/>
<FCUInt Name="BacklightColor" Value="4294967295"/>
<FCUInt Name="BackgroundColor" Value="336897023"/>
<FCUInt Name="BackgroundColor2" Value="859006463"/>
<FCUInt Name="BackgroundColor3" Value="2543299327"/>
<FCUInt Name="BackgroundColor" Value="3940932863"/>
<FCUInt Name="BackgroundColor2" Value="2526456575"/>
<FCUInt Name="BackgroundColor3" Value="3570714879"/>
<FCUInt Name="BackgroundColor4" Value="1869583359"/>
<FCUInt Name="HighlightColor" Value="3789624575"/>
<FCUInt Name="SelectionColor" Value="481107199"/>
Expand Down
8 changes: 4 additions & 4 deletions src/Gui/SplitView3DInventor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp
(*it)->setPickRadius(rGrp.GetFloat("PickRadius", 5.0f));
}
else {
unsigned long col1 = rGrp.GetUnsigned("BackgroundColor",3940932863UL);
unsigned long col2 = rGrp.GetUnsigned("BackgroundColor2",859006463UL); // default color (dark blue)
unsigned long col3 = rGrp.GetUnsigned("BackgroundColor3",2880160255UL); // default color (blue/grey)
unsigned long col4 = rGrp.GetUnsigned("BackgroundColor4",1869583359UL); // default color (blue/grey)
unsigned long col1 = rGrp.GetUnsigned("BackgroundColor", 3940932863UL);
unsigned long col2 = rGrp.GetUnsigned("BackgroundColor2", 2526456575UL); // default color (blue/grey)
unsigned long col3 = rGrp.GetUnsigned("BackgroundColor3", 3570714879UL); // default color (light yellow/blue)
unsigned long col4 = rGrp.GetUnsigned("BackgroundColor4", 1869583359UL); // default color (blue/grey)
float r1,g1,b1,r2,g2,b2,r3,g3,b3,r4,g4,b4;
r1 = ((col1 >> 24) & 0xff) / 255.0; g1 = ((col1 >> 16) & 0xff) / 255.0; b1 = ((col1 >> 8) & 0xff) / 255.0;
r2 = ((col2 >> 24) & 0xff) / 255.0; g2 = ((col2 >> 16) & 0xff) / 255.0; b2 = ((col2 >> 8) & 0xff) / 255.0;
Expand Down
8 changes: 4 additions & 4 deletions src/Gui/View3DInventor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M
}
}
else {
unsigned long col1 = rGrp.GetUnsigned("BackgroundColor",3940932863UL);
unsigned long col2 = rGrp.GetUnsigned("BackgroundColor2",859006463UL); // default color (dark blue)
unsigned long col3 = rGrp.GetUnsigned("BackgroundColor3",2880160255UL); // default color (blue/grey)
unsigned long col4 = rGrp.GetUnsigned("BackgroundColor4",1869583359UL); // default color (blue/grey)
unsigned long col1 = rGrp.GetUnsigned("BackgroundColor", 3940932863UL);
unsigned long col2 = rGrp.GetUnsigned("BackgroundColor2", 2526456575UL); // default color (blue/grey)
unsigned long col3 = rGrp.GetUnsigned("BackgroundColor3", 3570714879UL); // default color (light yellow/bluey)
unsigned long col4 = rGrp.GetUnsigned("BackgroundColor4", 1869583359UL); // default color (blue/grey)
float r1,g1,b1,r2,g2,b2,r3,g3,b3,r4,g4,b4;
r1 = ((col1 >> 24) & 0xff) / 255.0; g1 = ((col1 >> 16) & 0xff) / 255.0; b1 = ((col1 >> 8) & 0xff) / 255.0;
r2 = ((col2 >> 24) & 0xff) / 255.0; g2 = ((col2 >> 16) & 0xff) / 255.0; b2 = ((col2 >> 8) & 0xff) / 255.0;
Expand Down

0 comments on commit 1efb050

Please sign in to comment.