Column and Row Spacing in Thunar - copy

Alex acs82 at gmx.de
Thu Jul 12 21:24:00 CEST 2018


Thank you for figuring out how it works !

Forward to xfce4-dev, just to let others know that it is solved.

On 07/12/2018 11:35 AM, Usama Hashimi wrote:
> Wow...
>
> Yes, you can definitely add it to wiki.
>
> Thanks man :)
>
> On 07/12/2018 02:33 PM, Alex wrote:
>> Hi Zetro,
>>
>> ok, great !
>>
>> I added your solution to the Thunar Wiki Pages, so that others can learn
>> from it
>> https://docs.xfce.org/xfce/thunar/hidden-settings#custom_css
>>
>> Is that fine for you ?
>>
>> So far it's  just a first draft .. later on I will add more info about
>> GtkInspector and add the link to the GTk3 CSS Pages
>>
>> Cheers,
>> Alex
>>
>> On 07/12/2018 10:12 AM, Zetro Track wrote:
>>> Hi Alex,
>>>
>>> Thanks for sharing your idea with me. Meanwhile, I was able to solve
>>> my problem by following steps:
>>>
>>> 1. Create a file ~/.config/gtk-3.0/gtk.css
>>>
>>> 2. Paste following content in this file:
>>>
>>> * {
>>> -ThunarAbstractIconView-row-spacing: 70;
>>> -ThunarAbstractIconView-column-spacing: 30;
>>> }
>>>
>>> 3. Save, logout and login again.
>>>
>>>
>>> Regards,
>>>
>>> Zetro
>>>
>>>
>>>
>>> On 07/11/2018 11:45 PM, Alex wrote:
>>>> Hi,
>>>>
>>>> I dont have a fix for you, however maybe I can lead you on the right
>>>> track:
>>>>
>>>> If you press CTRL+Shift+D while thunar is focused, the GtKInspector
>>>> should open, if it is installed on your system.
>>>>
>>>> There you can select the ThunarIconView and its sub-widget
>>>> ExoIconView.
>>>>
>>>> ExoIconView has the properties "row-spacing" and  "column-spacing" ..
>>>> you can modify their value directly in the  GtKInspector.
>>>>
>>>> Theoretically it should be possible to provide some peace of CSS
>>>> within
>>>> the GtKInspector in order to set them ... but I am not very skilled at
>>>> CSS and failed at that part so far.
>>>>
>>>> Maybe you have more luck than me (or maybe somebody with CSS skills
>>>> could take a quick look )
>>>>
>>>> Cheers,
>>>> Alexander Schwinn
>>>>
>>>> P.S: Regarding the formatting: Here the official gtk3 CSS howto:
>>>>    https://developer.gnome.org/gtk3/stable/chap-css-overview.html
>>>>
>>>>
>>>> On 07/09/2018 04:53 PM, Olivier Fourdan wrote:
>>>>> Hi
>>>>>
>>>>> On Sun, 8 Jul 2018 at 20:36, Zetro Track <zetrotrack000 at gmail.com>
>>>>> wrote:
>>>>>> Hi
>>>>>>
>>>>>> I hope you will be fine. Originally I posted my problem in
>>>>>> forum.xfce.org, and, linuxquestions.org. There, a person asked me
>>>>>> to contact xfce developers. So, I am writing to you and hope that
>>>>>> your would not mind :)
>>>>>>
>>>>>> I am a xfce fan and use Thunar as my file manager. Originally the
>>>>>> rows and columns spacing of Thunar is not according to my
>>>>>> preference. So, in order to increase the spacing I used following
>>>>>> contents in ~/.gtkrc-2.0:
>>>>>>
>>>>>>
>>>>>> style "thunar-spaced-out-icons"
>>>>>> {
>>>>>>     ThunarIconView::column-spacing = 70
>>>>>>     ThunarIconView::row-spacing = 30
>>>>>> }
>>>>>> class "ThunarIconView" style "thunar-spaced-out-icons"
>>>>>>
>>>>>>
>>>>>> and it worked fine.
>>>>>>
>>>>>> However, after last upgrade (to thunar version 1.8.1git-f5147445)
>>>>>> the above settings stopped working. After some searching I have
>>>>>> found that now I need to edit ~/.config/gtk-3.0/settings.ini . And
>>>>>> also that its syntax is different from .gtkrc-2.0. I have tried
>>>>>> some variations in ~/.config/gtk-3.0/settings.ini, for example:
>>>>>>
>>>>>> gtk-ThunarIconView-column-spacing=70
>>>>>> gtk-ThunarIconView-row-spacing=30
>>>>>>
>>>>>>
>>>>>> and in ~/.config/gtk-3.0/gtk.css:
>>>>>>
>>>>>>
>>>>>> * {
>>>>>> -ThunarIconView-row-spacing: 7;
>>>>>> -ThunarIconView-column-spacing: 7;
>>>>>> }
>>>>>>
>>>>>> and
>>>>>>
>>>>>> gtk-ThunarIconView-row-spacing: 7;
>>>>>> gtk-ThunarIconView-column-spacing: 7;
>>>>>>
>>>>>>
>>>>>> But without any success.
>>>>>>
>>>>>> There are plenty of examples on internet regarding gtk-theme,
>>>>>> icon-theme, icon-size etc. but I am unable to find my particular
>>>>>> settings (regarding column/row spacing).
>>>>>>
>>>>>> I think that I have to convert my .gtk-2.0 syntax to gtk-3.0, but I
>>>>>> am not a programmer so I am struggling in this task.
>>>>>> Kindly guide me towards correct syntax for my problem. So not only
>>>>>> I can benefit from it, but also many others who are following my
>>>>>> forum post.
>>>>> You need to send your email to the xfce4-devel mailing list (CC'ed
>>>>> but
>>>>> you'll need to subscribe to post there) where you have more chance to
>>>>> reach the Thunar developers.
>>>>>
>>>>> Cheers,
>>>>> Olivier
>>>>> _______________________________________________
>>>>> Xfce4-dev mailing list
>>>>> Xfce4-dev at xfce.org
>>>>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>



More information about the Xfce4-dev mailing list