Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-01-23 17:36:16

blackdisk
Member
Registered: 2006-03-30
Posts: 28

Desktop icons spacing

I installed 4.4.0 and the icons can now be resized to anything without that disappearing bug anymore, but they are way too far apart, how can I reduce this space so they are closer together?

Offline

#2 2007-01-23 18:02:22

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: Desktop icons spacing

IIRC there is no way to change the grid.

Offline

#3 2007-01-30 13:55:02

neuschnee
Member
From: Canada
Registered: 2006-12-10
Posts: 1

Re: Desktop icons spacing

Nick wrote:

IIRC there is no way to change the grid.

nah, just edit xfdesktop/src/xfdesktop-icon-view.c

what i use:

#define DEFAULT_FONT_SIZE  7
#define DEFAULT_ICON_SIZE  16

#define ICON_SIZE         (icon_view->priv->icon_size)
#define TEXT_WIDTH        ((ICON_SIZE << 1) + (ICON_SIZE >> 1))  /* aka 2.5x */
#define CELL_PADDING      4
#define CELL_SIZE         (TEXT_WIDTH + CELL_PADDING * 2)
#define SPACING           4
#define SCREEN_MARGIN     4
#define CORNER_ROUNDNESS  2

Offline

#4 2007-03-28 00:03:17

su_xfce
Member
Registered: 2006-11-07
Posts: 4

Re: Desktop icons spacing

neuschnee wrote:
Nick wrote:

IIRC there is no way to change the grid.

nah, just edit xfdesktop/src/xfdesktop-icon-view.c

what i use:

#define DEFAULT_FONT_SIZE  7
#define DEFAULT_ICON_SIZE  16

#define ICON_SIZE         (icon_view->priv->icon_size)
#define TEXT_WIDTH        ((ICON_SIZE << 1) + (ICON_SIZE >> 1))  /* aka 2.5x */
#define CELL_PADDING      4
#define CELL_SIZE         (TEXT_WIDTH + CELL_PADDING * 2)
#define SPACING           4
#define SCREEN_MARGIN     4
#define CORNER_ROUNDNESS  2

Where can I find xfdesktop/src/xfdesktop-icon-view.c

Offline

#5 2007-03-28 15:44:33

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: Desktop icons spacing

It's from the source code. You would have to patch the source and recompile.

Offline

#6 2007-03-29 10:51:52

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: Desktop icons spacing

Why not make a small patch to get its values from a resource file?

For example, it could read from values from ~/.config/xfce4/desktop.xml (or from icons.screen#.rc) as:

        <option name="icons_size_default" type="int" value="48"/>
        <option name="icons_grid_auto" type="int" value="1"/>
        <option name="icons_x_grid" type="int" value="44"/>
        <option name="icons_y_grid" type="int" value="44"/>

(or something equivalent, for the matter).

Also would be cool to have on ~/.config/xfce4/icons.screen#.rc a list of icons on desktop where you could customize the size of some icons.

Regards

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 9 queries executed - Memory usage: 534.4 KiB (Peak: 535.24 KiB) ]