Skip to content

Commit 954bf58

Browse files
vkarehraveit65
authored andcommitted
Change cursor-size to 24px
The MATE cursor theme does not have an 18px cursor size, so having a 18px as the default setting does not make sense. Using 24px looks better in modern displays and allows for proper HiDPI scaling.
1 parent f031ccb commit 954bf58

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎capplets/appearance/appearance-style.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ update_cursor_size_scale (MateThemeCursorInfo *theme,
544544
if (theme && theme->sizes->len > 0)
545545
size = g_array_index (theme->sizes, gint, 0);
546546
else
547-
size = 18;
547+
size = 24;
548548
}
549549

550550
if (size != gsettings_size)

‎capplets/common/mate-theme-info.c‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <glib/gi18n.h>
3333
#include <gmodule.h>
3434
#include <gtk/gtk.h>
35-
#include <gdk/gdk.h>
3635
#include <gdk/gdkx.h>
3736
#include <gio/gio.h>
3837
#include <string.h>
@@ -384,8 +383,6 @@ MateThemeMetaInfo* mate_theme_read_meta_theme(GFile* meta_theme_uri)
384383

385384
str = mate_desktop_item_get_string(meta_theme_ditem, CURSOR_THEME_KEY);
386385

387-
GdkWindow *window = gdk_get_default_root_window ();
388-
gint scale = gdk_window_get_scale_factor (window);
389386
if (str != NULL)
390387
{
391388
meta_theme_info->cursor_theme_name = g_strdup(str);
@@ -395,14 +392,13 @@ MateThemeMetaInfo* mate_theme_read_meta_theme(GFile* meta_theme_uri)
395392
if (str)
396393
meta_theme_info->cursor_size = (int) g_ascii_strtoll(str, NULL, 10);
397394
else
398-
meta_theme_info->cursor_size = 18;
395+
meta_theme_info->cursor_size = 24;
399396
}
400397
else
401398
{
402399
meta_theme_info->cursor_theme_name = g_strdup("default");
403-
meta_theme_info->cursor_size = 18;
400+
meta_theme_info->cursor_size = 24;
404401
}
405-
meta_theme_info->cursor_size *= scale;
406402

407403
str = mate_desktop_item_get_string(meta_theme_ditem, APPLICATION_FONT_KEY);
408404

@@ -545,7 +541,7 @@ read_cursor_theme (GFile *cursor_theme_uri)
545541
MateThemeCursorInfo *cursor_theme_info = NULL;
546542
GFile *parent_uri, *cursors_uri;
547543

548-
const gint filter_sizes[] = { 12, 16, 24, 32, 36, 40, 48, 64, 96, 128 };
544+
const gint filter_sizes[] = { 12, 16, 18, 24, 32, 36, 40, 48, 64, 96, 128 };
549545
const gint num_sizes = G_N_ELEMENTS (filter_sizes);
550546

551547
parent_uri = g_file_get_parent (cursor_theme_uri);

0 commit comments

Comments
 (0)