tweak the fit of the parts
This commit is contained in:
@@ -44,6 +44,7 @@ module FeatherCaseWizard
|
||||
choose_stack(config)
|
||||
choose_end_clearance(config)
|
||||
choose_features(config)
|
||||
choose_lid_artwork(config)
|
||||
manage_cutouts(config)
|
||||
choose_coupons(config)
|
||||
advanced(config) if ui.agree("Adjust advanced dimensions? (y/n) ") do |question|
|
||||
@@ -143,6 +144,26 @@ module FeatherCaseWizard
|
||||
)
|
||||
end
|
||||
|
||||
def choose_lid_artwork(config)
|
||||
p = config.parameters
|
||||
label_enabled = agreement("Add a two-color device title to the lid?",
|
||||
!p["lid_label"].empty?)
|
||||
p["lid_label"] = label_enabled ? text(
|
||||
"Device title", p["lid_label"].empty? ? config.name : p["lid_label"]
|
||||
) : ""
|
||||
p["lid_logo_enabled"] = agreement("Add the two-color NME logo to the lid?",
|
||||
p["lid_logo_enabled"])
|
||||
return unless !p["lid_label"].empty? || p["lid_logo_enabled"]
|
||||
|
||||
current = p["lid_art_orientation"]
|
||||
p["lid_art_orientation"] = ui.choose("USB position when the lid text is upright") do |menu|
|
||||
Config::LID_ART_ORIENTATIONS.each do |orientation|
|
||||
menu.choice(orientation.delete_prefix("usb_").capitalize) { orientation }
|
||||
end
|
||||
menu.default = (Config::LID_ART_ORIENTATIONS.index(current).to_i + 1).to_s
|
||||
end
|
||||
end
|
||||
|
||||
def manage_cutouts(config)
|
||||
loop do
|
||||
ui.say("Custom cable cutouts: #{config.cutouts.empty? ? "none" :
|
||||
|
||||
Reference in New Issue
Block a user