You are not logged in.
Pages: 1
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
Offline
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
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
It's from the source code. You would have to patch the source and recompile.
Offline
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
Pages: 1
[ Generated in 0.015 seconds, 9 queries executed - Memory usage: 534.4 KiB (Peak: 535.24 KiB) ]