@@ -87,15 +87,16 @@ pub fn main() !void {
87
87
// zgui.setNextWindowSize(.{ .w = 420, .h = 300, .cond = .always });
88
88
89
89
if (zgui .begin ("invisible_title" , .{ .flags = .{ .no_title_bar = true , .no_resize = true , .no_background = true } })) {
90
+ const padding = 15 ;
90
91
const min_width = 855 ;
91
92
92
- zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .input_folder_path , .{})[0 ], min_width ));
93
+ zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .input_folder_path , .{})[0 ] + padding , min_width ));
93
94
if (zgui .inputTextWithHint ("Input/ folder path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & input_folder_path_mut })) {
94
95
settings .input_folder_path = std .mem .span (@as ([* :0 ]u8 , & input_folder_path_mut ));
95
96
try writeSettings (settings );
96
97
}
97
98
98
- zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .output_folder_path , .{})[0 ], min_width ));
99
+ zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .output_folder_path , .{})[0 ] + padding , min_width ));
99
100
if (zgui .inputTextWithHint ("Mods/ folder path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & output_folder_path_mut })) {
100
101
settings .output_folder_path = std .mem .span (@as ([* :0 ]u8 , & output_folder_path_mut ));
101
102
try writeSettings (settings );
@@ -162,7 +163,7 @@ pub fn main() !void {
162
163
std .debug .print ("Done converting!\n " , .{});
163
164
}
164
165
165
- zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .game_executable_path , .{})[0 ], min_width ));
166
+ zgui .setNextItemWidth (@max (zgui .calcTextSize (settings .game_executable_path , .{})[0 ] + padding , min_width ));
166
167
if (zgui .inputTextWithHint ("Game .exe path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & game_executable_path_mut })) {
167
168
settings .game_executable_path = std .mem .span (@as ([* :0 ]u8 , & game_executable_path_mut ));
168
169
try writeSettings (settings );
0 commit comments