Start: Added pref option to use gradient icon for new files
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>476</width>
|
||||
<height>743</height>
|
||||
<width>482</width>
|
||||
<height>769</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -533,6 +533,29 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="12" column="0">
|
||||
<widget class="QLabel" name="label_18">
|
||||
<property name="text">
|
||||
<string>Use gradient for New File icon</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBox_6">
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>NewFileGradient</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/Start</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -97,6 +97,7 @@ void DlgStartPreferencesImp::saveSettings()
|
||||
checkBox_3->onSave();
|
||||
checkBox_4->onSave();
|
||||
checkBox_5->onSave();
|
||||
checkBox_6->onSave();
|
||||
lineEdit->onSave();
|
||||
spinBox->onSave();
|
||||
}
|
||||
@@ -126,6 +127,7 @@ void DlgStartPreferencesImp::loadSettings()
|
||||
checkBox_3->onRestore();
|
||||
checkBox_4->onRestore();
|
||||
checkBox_5->onRestore();
|
||||
checkBox_6->onRestore();
|
||||
lineEdit->onRestore();
|
||||
spinBox->onRestore();
|
||||
}
|
||||
|
||||
@@ -304,7 +304,10 @@ def handle():
|
||||
SECTION_RECENTFILES += "<ul>"
|
||||
SECTION_RECENTFILES += '<a href="LoadNew.py" title="'+TranslationTexts.T_CREATENEW+'">'
|
||||
SECTION_RECENTFILES += '<li class="icon">'
|
||||
SECTION_RECENTFILES += '<img src="images/new_file_thumbnail.svg">'
|
||||
if FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Start").GetBool("NewFileGradient",False):
|
||||
SECTION_RECENTFILES += '<img src="'+iconbank["createimg"]+'">'
|
||||
else:
|
||||
SECTION_RECENTFILES += '<img src="images/new_file_thumbnail.svg">'
|
||||
SECTION_RECENTFILES += '<div class="caption">'
|
||||
SECTION_RECENTFILES += '<h4>'+TranslationTexts.T_CREATENEW+'</h4>'
|
||||
SECTION_RECENTFILES += '</div>'
|
||||
|
||||
Reference in New Issue
Block a user