fix(react): Pattern Layout print settings UI fixes (#351)
Fixes #341 Fixes #342   Co-authored-by: Benjamin Fan <ben-git@swinglonga.com> Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/351 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org> Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
This commit is contained in:
parent
dcf7c0412b
commit
3390def67c
2 changed files with 6 additions and 4 deletions
|
@ -119,7 +119,7 @@ export const MenuMmValue = ({ current, config, units, changed }) => (
|
|||
* Displays the current percentage value, and the absolute value if configured
|
||||
*/
|
||||
export const MenuPctOptionValue = ({ config, current, settings, changed, patternConfig }) => {
|
||||
const val = changed ? current : config.pct / 100
|
||||
const val = changed ? current : config.dflt
|
||||
|
||||
return (
|
||||
<MenuHighlightValue changed={changed}>
|
||||
|
|
|
@ -20,7 +20,8 @@ const defaultPrintSettings = (units) => ({
|
|||
size: units === 'imperial' ? 'letter' : 'a4',
|
||||
orientation: 'portrait',
|
||||
margin: units === 'imperial' ? 12.7 : 10,
|
||||
coverPage: true,
|
||||
coverPage: 1,
|
||||
iconSize: 0.5,
|
||||
})
|
||||
|
||||
export function menuLayoutSettingsStructure(units) {
|
||||
|
@ -76,6 +77,7 @@ export function menuLayoutSettingsStructure(units) {
|
|||
),
|
||||
},
|
||||
icon: PageOrientationIcon,
|
||||
dflt: defaults.orientation,
|
||||
},
|
||||
margin: {
|
||||
dense: true,
|
||||
|
@ -98,7 +100,7 @@ export function menuLayoutSettingsStructure(units) {
|
|||
0: 'Do not include a cover page',
|
||||
1: 'Include a cover page',
|
||||
},
|
||||
dflt: 0,
|
||||
dflt: defaults.coverPage,
|
||||
},
|
||||
iconSize: {
|
||||
dense: true,
|
||||
|
@ -108,7 +110,7 @@ export function menuLayoutSettingsStructure(units) {
|
|||
about:
|
||||
'Controls the size of the icons that allow you to rotate/flip individual pattern parts',
|
||||
min: 10,
|
||||
dflt: 0.5,
|
||||
dflt: defaults.iconSize,
|
||||
step: 1,
|
||||
max: 200,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue