Equal signs before all yad options

This commit is contained in:
sose 2019-01-26 13:22:00 -08:00
parent bfdadd9a5a
commit 1634f32e98
3 changed files with 19 additions and 20 deletions

View File

@ -20,7 +20,6 @@ Part of TildeLinux.
### TODO
- Code cleanup
- Equal signs before all yad options
- Move shared functions into separate files
- Error handling for file creation
- The exit and cancel buttons should do the same thing

View File

@ -81,9 +81,9 @@ info_box() {
--posx="$mouse_x" \
--posy="$mouse_y" \
--no-buttons \
--width 250 \
--image "dialog-info" \
--title "Info" \
--width=250 \
--image="dialog-info" \
--title="Info" \
--text "$info_text"
}

View File

@ -43,10 +43,10 @@ error_box() {
yad \
--posx="$mouse_x" \
--posy="$mouse_y" \
--width 250 \
--image "dialog-error" \
--title "Error!" \
--text "$error_text" \
--width=250 \
--image="dialog-error" \
--title="Error!" \
--text="$error_text" \
--button="OK":0
}
@ -55,10 +55,10 @@ succ_box() {
yad \
--posx="$mouse_x" \
--posy="$mouse_y" \
--width 250 \
--image "dialog-info" \
--title "Success!" \
--text "$succ_text" \
--width=250 \
--image="dialog-info" \
--title="Success!" \
--text="$succ_text" \
--button="OK":0
}
@ -67,10 +67,10 @@ dec_box() {
yad \
--posx="$mouse_x" \
--posy="$mouse_y" \
--width 250 \
--image "dialog-error" \
--title "Error!" \
--text "$error_text" \
--width=250 \
--image="dialog-error" \
--title="Error!" \
--text="$error_text" \
--button="No":1 \
--button="Yes":0
return $?
@ -82,10 +82,10 @@ info_box() {
--posx="$mouse_x" \
--posy="$mouse_y" \
--no-buttons \
--width 250 \
--image "dialog-info" \
--title "Info" \
--text "$info_text"
--width=250 \
--image="dialog-info" \
--title="Info" \
--text="$info_text"
}
get_info() {