Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons and the tree icons (both in the code window for fold/unfold and the files tree).
Is there any setting for those icons size?
On 15-03-11 09:45 AM, Alessandro Pasotti wrote:
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons and the tree icons (both in the code window for fold/unfold and the files tree).
Is there any setting for those icons size?
Hi,
All of the icons come from here:
https://github.com/geany/geany/tree/master/icons
If it looks ugly/blurry it probably means it misses a scalable SVG version. If you can tell which of those icons exactly aren't working right, it might just be needed to regenerate them at some different resolution as PNG, assuming we have some vector source image. Otherwise, I'd think it should use the scalable SVG versions.
Cheers, Matthew Brush
Hi,
Le 11/03/2015 17:45, Alessandro Pasotti a écrit :
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons
This may be because of https://github.com/geany/geany/blob/master/src/notebook.c#L628-L629 perhaps you could try commenting out those two calls an,d see if it helps?
and the tree icons (both in the code window for fold/unfold
Hum, this doesn't surprises me, as Scintilla uses pixel sizes here and we don't explicitly support HiDPI on our side. However, I think maybe latest Scintilla has something for this, so maybe it'd be worth trying.
BTW, which version of Geany do you use? Could you try the Git (development) version and see if anything is better?
and the files tree).
The *files* tree icons? Which do you mean? if it was the icons in the Symbols pane I could understand because AFAIK as Matthew pointed out we only have 16x16 icons for those, but the icons for the Documents and Files [1] panes are entirely on the GTK toolkit control (we only ask for an icon from the theme, not a specific size).
[1] which is fro the filebrowser core plugin.
Is there any setting for those icons size?
There might be at the GTK level, but I would think not-prehistoric GTK versions would handle symbolic sizes just fine on HiDPI by itself.
Regards, Colomban
Hello,
Geany is version 1.23.1 (official Ubuntu Package on LTS 14.04).
I attach an image with the two small icons, I think they are both from GTK.
2015-03-15 14:12 GMT+01:00 Colomban Wendling lists.ban@herbesfolles.org:
Hi,
Le 11/03/2015 17:45, Alessandro Pasotti a écrit :
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons
This may be because of https://github.com/geany/geany/blob/master/src/notebook.c#L628-L629 perhaps you could try commenting out those two calls an,d see if it helps?
and the tree icons (both in the code window for fold/unfold
Hum, this doesn't surprises me, as Scintilla uses pixel sizes here and we don't explicitly support HiDPI on our side. However, I think maybe latest Scintilla has something for this, so maybe it'd be worth trying.
BTW, which version of Geany do you use? Could you try the Git (development) version and see if anything is better?
and the files tree).
The *files* tree icons? Which do you mean? if it was the icons in the Symbols pane I could understand because AFAIK as Matthew pointed out we only have 16x16 icons for those, but the icons for the Documents and Files [1] panes are entirely on the GTK toolkit control (we only ask for an icon from the theme, not a specific size).
[1] which is fro the filebrowser core plugin.
Is there any setting for those icons size?
There might be at the GTK level, but I would think not-prehistoric GTK versions would handle symbolic sizes just fine on HiDPI by itself.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi Alessandro,
Do you mean the expanders on the file tree and the +/- on the source code folds?
The former comes from your theme via GTK, I don't think we have any control over it. Maybe GTK and KDE are having a disagreement over the size to use.
The latter is generated by Scintilla. There have been many fixes for hidpi in the two years since the version of Scintilla used for 1.23.1 was released. Any chance you could try the current git version, perhaps using the nightly build? One of the Debian builds should work on Ubuntu, see http://nightly.geany.org/debian/.
Cheers Lex
On 16 March 2015 at 17:19, Alessandro Pasotti apasotti@gmail.com wrote:
Hello,
Geany is version 1.23.1 (official Ubuntu Package on LTS 14.04).
I attach an image with the two small icons, I think they are both from GTK.
2015-03-15 14:12 GMT+01:00 Colomban Wendling lists.ban@herbesfolles.org:
Hi,
Le 11/03/2015 17:45, Alessandro Pasotti a écrit :
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons
This may be because of https://github.com/geany/geany/blob/master/src/notebook.c#L628-L629 perhaps you could try commenting out those two calls an,d see if it helps?
and the tree icons (both in the code window for fold/unfold
Hum, this doesn't surprises me, as Scintilla uses pixel sizes here and we don't explicitly support HiDPI on our side. However, I think maybe latest Scintilla has something for this, so maybe it'd be worth trying.
BTW, which version of Geany do you use? Could you try the Git (development) version and see if anything is better?
and the files tree).
The *files* tree icons? Which do you mean? if it was the icons in the Symbols pane I could understand because AFAIK as Matthew pointed out we only have 16x16 icons for those, but the icons for the Documents and Files [1] panes are entirely on the GTK toolkit control (we only ask for an icon from the theme, not a specific size).
[1] which is fro the filebrowser core plugin.
Is there any setting for those icons size?
There might be at the GTK level, but I would think not-prehistoric GTK versions would handle symbolic sizes just fine on HiDPI by itself.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
-- Alessandro Pasotti w3: www.itopen.it _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
2015-03-16 8:39 GMT+01:00 Lex Trotman elextr@gmail.com:
Hi Alessandro,
Do you mean the expanders on the file tree and the +/- on the source code folds?
Yes.
The former comes from your theme via GTK, I don't think we have any control over it. Maybe GTK and KDE are having a disagreement over the size to use.
The latter is generated by Scintilla. There have been many fixes for hidpi in the two years since the version of Scintilla used for 1.23.1 was released. Any chance you could try the current git version, perhaps using the nightly build? One of the Debian builds should work on Ubuntu, see http://nightly.geany.org/debian/.
I will try, do I need to update scintilla libraries too?
-- w3: www.itopen.it
Hi,
just tried the nightly, no changes to the small icons...
Thanks anyway.
2015-03-16 8:39 GMT+01:00 Lex Trotman elextr@gmail.com:
Hi Alessandro,
Do you mean the expanders on the file tree and the +/- on the source code folds?
The former comes from your theme via GTK, I don't think we have any control over it. Maybe GTK and KDE are having a disagreement over the size to use.
The latter is generated by Scintilla. There have been many fixes for hidpi in the two years since the version of Scintilla used for 1.23.1 was released. Any chance you could try the current git version, perhaps using the nightly build? One of the Debian builds should work on Ubuntu, see http://nightly.geany.org/debian/.
Cheers Lex
On 16 March 2015 at 17:19, Alessandro Pasotti apasotti@gmail.com wrote:
Hello,
Geany is version 1.23.1 (official Ubuntu Package on LTS 14.04).
I attach an image with the two small icons, I think they are both from GTK.
2015-03-15 14:12 GMT+01:00 Colomban Wendling lists.ban@herbesfolles.org:
Hi,
Le 11/03/2015 17:45, Alessandro Pasotti a écrit :
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons
This may be because of https://github.com/geany/geany/blob/master/src/notebook.c#L628-L629 perhaps you could try commenting out those two calls an,d see if it helps?
and the tree icons (both in the code window for fold/unfold
Hum, this doesn't surprises me, as Scintilla uses pixel sizes here and we don't explicitly support HiDPI on our side. However, I think maybe latest Scintilla has something for this, so maybe it'd be worth trying.
BTW, which version of Geany do you use? Could you try the Git (development) version and see if anything is better?
and the files tree).
The *files* tree icons? Which do you mean? if it was the icons in the Symbols pane I could understand because AFAIK as Matthew pointed out we only have 16x16 icons for those, but the icons for the Documents and Files [1] panes are entirely on the GTK toolkit control (we only ask for an icon from the theme, not a specific size).
[1] which is fro the filebrowser core plugin.
Is there any setting for those icons size?
There might be at the GTK level, but I would think not-prehistoric GTK versions would handle symbolic sizes just fine on HiDPI by itself.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
-- Alessandro Pasotti w3: www.itopen.it _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
As you no doubt found, Scintilla is included in the nightly. That would probably only affect the folding icons, not the file ones.
Unfortunately none of us can test it on hidpi ;-)
(or KDE)
Cheers Lex
On 16 March 2015 at 17:46, Alessandro Pasotti apasotti@gmail.com wrote:
Hi,
just tried the nightly, no changes to the small icons...
Thanks anyway.
2015-03-16 8:39 GMT+01:00 Lex Trotman elextr@gmail.com:
Hi Alessandro,
Do you mean the expanders on the file tree and the +/- on the source code folds?
The former comes from your theme via GTK, I don't think we have any control over it. Maybe GTK and KDE are having a disagreement over the size to use.
The latter is generated by Scintilla. There have been many fixes for hidpi in the two years since the version of Scintilla used for 1.23.1 was released. Any chance you could try the current git version, perhaps using the nightly build? One of the Debian builds should work on Ubuntu, see http://nightly.geany.org/debian/.
Cheers Lex
On 16 March 2015 at 17:19, Alessandro Pasotti apasotti@gmail.com wrote:
Hello,
Geany is version 1.23.1 (official Ubuntu Package on LTS 14.04).
I attach an image with the two small icons, I think they are both from GTK.
2015-03-15 14:12 GMT+01:00 Colomban Wendling lists.ban@herbesfolles.org:
Hi,
Le 11/03/2015 17:45, Alessandro Pasotti a écrit :
Hello,
I'm using Geany on Kubuntu with an hidpi 4k screeen, it works fine except for the tab close icons
This may be because of https://github.com/geany/geany/blob/master/src/notebook.c#L628-L629 perhaps you could try commenting out those two calls an,d see if it helps?
and the tree icons (both in the code window for fold/unfold
Hum, this doesn't surprises me, as Scintilla uses pixel sizes here and we don't explicitly support HiDPI on our side. However, I think maybe latest Scintilla has something for this, so maybe it'd be worth trying.
BTW, which version of Geany do you use? Could you try the Git (development) version and see if anything is better?
and the files tree).
The *files* tree icons? Which do you mean? if it was the icons in the Symbols pane I could understand because AFAIK as Matthew pointed out we only have 16x16 icons for those, but the icons for the Documents and Files [1] panes are entirely on the GTK toolkit control (we only ask for an icon from the theme, not a specific size).
[1] which is fro the filebrowser core plugin.
Is there any setting for those icons size?
There might be at the GTK level, but I would think not-prehistoric GTK versions would handle symbolic sizes just fine on HiDPI by itself.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
-- Alessandro Pasotti w3: www.itopen.it _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
-- Alessandro Pasotti w3: www.itopen.it _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Mon, Mar 16, 2015 at 9:01 AM, Lex Trotman elextr@gmail.com wrote:
As you no doubt found, Scintilla is included in the nightly. That would probably only affect the folding icons, not the file ones.
Unfortunately none of us can test it on hidpi ;-)
I can (well, Apple calls the thing "retina").
I've been playing with hidpi a bit so I can give a little bit more information. I believe at least the fold expanders are drawn by scintilla using cairo. Only since cairo 1.14 it supports setting the pixel density using
cairo_surface_set_device_scale()
after which you can use the same code for hidpi/nohidpi screens (e.g. if you set the scale 2, for cairo coordinates you can still use 1px which is automatically drawn as 2px on the hidpi screens). With the GDK backend this is set for you by GDK which detects the screen resolution for you but you need at least GTK 3.10 (or 3.12, not sure now) compiled against cairo 1.14. So at least in theory it should work with recent GTK/cairo.
Now at least with the quartz (OS X) backend, I ran into several problems where some widgets were drawn hidpi and some not so for the OS X bundle I decided to use GTK 2 for now (fonts are fortunately rendered hidpi, just the graphics is a bit pixelated). I think the whole GTK hidpi support is quite young and will need some time to mature.
I don't think we have to do anything special for hidpi support in Geany itself except maybe providing higher resolution icons.
Cheers,
Jiri