Skip to content

Commit 532685f

Browse files
committed
Improve horizontal spacing between icons
1 parent 619cfe0 commit 532685f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/vincent_falzon/discreetlauncher/ActivityMain.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ protected void onCreate(Bundle savedInstanceState)
176176
// Define the width of an application item
177177
int app_size_pixels = Utils.getIconSize(this, settings) ;
178178
int padding_pixels ;
179-
if(settings.getBoolean(Constants.HIDE_APP_NAMES, false)
180-
&& settings.getBoolean(Constants.REMOVE_PADDING, false)) padding_pixels = Math.round(app_size_pixels / 24f) ;
181-
else padding_pixels = Math.round(app_size_pixels / 1.5f) ;
179+
if(settings.getBoolean(Constants.HIDE_APP_NAMES, false))
180+
padding_pixels = settings.getBoolean(Constants.REMOVE_PADDING, false) ? 0 : Math.round(25 * density) ;
181+
else padding_pixels = Math.round(Math.min(app_size_pixels / 1.5f, 32 * density)) ;
182182
application_width = app_size_pixels + padding_pixels ;
183183

184184
// Update the display according to settings

0 commit comments

Comments
 (0)