Hi,
I noticed that the background color really used in Geany to mark searches is never the exact color set in "marker_search" in color schemes, as if a kind of translucency was automatically applied. For example, see the following screenshot:
http://www.jpfleury.net/depot-fichiers/png/geany-themes-gedit-cpp.png
The second color scheme sets:
marker_line=0x000000;0xffff00 marker_search=marker_line
but we see in the screenshot that Geany really uses color "0xffffc3" (washed yellow) instead of "0xffff00" (bright yellow).
Same thing happens with any color scheme.
I tried to play with "marker_translucency", but it doesn't change anything.
Do you have any idea why this happens?
Regards,
Jean-Philippe
Jean-Philippe Fleury a écrit le 2011-09-08 23:41 :
I noticed that the background color really used in Geany to mark searches is never the exact color set in "marker_search" in color schemes, as if a kind of translucency was automatically applied.
My version is Geany 0.21 (svn >= r5908).
Regards,
Jean-Philippe
On 9 September 2011 13:41, Jean-Philippe Fleury contact@jpfleury.net wrote:
Hi,
I noticed that the background color really used in Geany to mark searches is never the exact color set in "marker_search" in color schemes, as if a kind of translucency was automatically applied. For example, see the following screenshot:
http://www.jpfleury.net/depot-fichiers/png/geany-themes-gedit-cpp.png
The second color scheme sets:
marker_line=0x000000;0xffff00 marker_search=marker_line
but we see in the screenshot that Geany really uses color "0xffffc3" (washed yellow) instead of "0xffff00" (bright yellow).
Hi,
The markings used for mark-all searches are applied with hard coded alpha of 60 out of 256.
Cheers Lex
Lex Trotman a écrit le 2011-09-09 00:13 :
The markings used for mark-all searches are applied with hard coded alpha of 60 out of 256.
Thanks for your answer.
About "marker_translucency", we can read in the the manual:
Translucency for the line marker (first argument) and the search marker (second argument). Values between 0 and 256 are accepted.
How "marker_translucency" is applied to search marker if there's already a hard coded value? I tried to change values of "marker_translucency", but it doesn't seem to change anything.
Regards,
Jean-Philippe
On 09/08/2011 10:20 PM, Jean-Philippe Fleury wrote:
Lex Trotman a écrit le 2011-09-09 00:13 :
The markings used for mark-all searches are applied with hard coded alpha of 60 out of 256.
Is that from before the color schemes support?
Thanks for your answer.
About "marker_translucency", we can read in the the manual:
Translucency for the line marker (first argument) and the search marker (second argument). Values between 0 and 256 are accepted.
How "marker_translucency" is applied to search marker if there's already a hard coded value? I tried to change values of "marker_translucency", but it doesn't seem to change anything.
I guess it just ignores it currently? Seems like a bug to me.
FWIW, it's hardcoded here: http://git.geany.org/geany/tree/src/highlighting.c#n673
Cheers, Matthew Brush
On 9 September 2011 15:52, Matthew Brush mbrush@codebrainz.ca wrote:
On 09/08/2011 10:20 PM, Jean-Philippe Fleury wrote:
Lex Trotman a écrit le 2011-09-09 00:13 :
The markings used for mark-all searches are applied with hard coded alpha of 60 out of 256.
Is that from before the color schemes support?
Que? I was referring to line 673 as you noted below.
Thanks for your answer.
About "marker_translucency", we can read in the the manual:
Translucency for the line marker (first argument) and the search marker (second argument). Values between 0 and 256 are accepted.
How "marker_translucency" is applied to search marker if there's already a hard coded value? I tried to change values of "marker_translucency", but it doesn't seem to change anything.
I guess it just ignores it currently? Seems like a bug to me.
No it applies to something else, see my other post. But the manual could be clearer, too many things called markers.
FWIW, it's hardcoded here: http://git.geany.org/geany/tree/src/highlighting.c#n673
See lines 680 & 686 for where marker_translucency is used.
Cheers Lex
Cheers, Matthew Brush _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 9 September 2011 15:20, Jean-Philippe Fleury contact@jpfleury.net wrote:
Lex Trotman a écrit le 2011-09-09 00:13 :
The markings used for mark-all searches are applied with hard coded alpha of 60 out of 256.
Thanks for your answer.
About "marker_translucency", we can read in the the manual:
Translucency for the line marker (first argument) and the search marker (second argument). Values between 0 and 256 are accepted.
How "marker_translucency" is applied to search marker if there's already a hard coded value? I tried to change values of "marker_translucency", but it doesn't seem to change anything.
Hi,
You have marking search matches and markers confused. Markers are the little yellow arrow and the plus sign that appear in the margin. Those are what is affected by the marker_translucency setting, not the marked search matches, which is what you were comparing to gedit. The two values of marker_translucency are used for the arrow and the plus respectively. It would appear that the manual is a bit confusing here.
Just for your information, marked search matches are alpha blended rather than just setting a background so that the text is more likely to remain legible. Setting a background would require you to then check and change all highlighting that used colours close to the new background. In contrast so long as foreground and background are different, alpha blending will change both so it is a likely that the text is still visible.
Cheers Lex
Regards,
Jean-Philippe _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 09/08/2011 10:55 PM, Lex Trotman wrote:
You have marking search matches and markers confused. Markers are the little yellow arrow and the plus sign that appear in the margin. Those are what is affected by the marker_translucency setting, not the marked search matches, which is what you were comparing to gedit. The two values of marker_translucency are used for the arrow and the plus respectively. It would appear that the manual is a bit confusing here.
Ah! thanks for clearing that up.
Just for your information, marked search matches are alpha blended rather than just setting a background so that the text is more likely to remain legible. Setting a background would require you to then check and change all highlighting that used colours close to the new background. In contrast so long as foreground and background are different, alpha blending will change both so it is a likely that the text is still visible.
This could be settable and defaulted to 60 in filetypes.common.
Something like this maybe? # colour, fill alpha, border alpha and whether the # inidicator is drawn over (true) or under (false) text search_indicator=0xFFFF00;60;60;true
Maybe it's not worth coding though.
Cheers, Matthew Brush
On 9 September 2011 16:54, Matthew Brush mbrush@codebrainz.ca wrote:
On 09/08/2011 10:55 PM, Lex Trotman wrote:
You have marking search matches and markers confused. Markers are the little yellow arrow and the plus sign that appear in the margin. Those are what is affected by the marker_translucency setting, not the marked search matches, which is what you were comparing to gedit. The two values of marker_translucency are used for the arrow and the plus respectively. It would appear that the manual is a bit confusing here.
Ah! thanks for clearing that up.
Just for your information, marked search matches are alpha blended rather than just setting a background so that the text is more likely to remain legible. Setting a background would require you to then check and change all highlighting that used colours close to the new background. In contrast so long as foreground and background are different, alpha blending will change both so it is a likely that the text is still visible.
This could be settable and defaulted to 60 in filetypes.common.
Something like this maybe?
# colour, fill alpha, border alpha and whether the # inidicator is drawn over (true) or under (false) text search_indicator=0xFFFF00;60;60;true
Maybe it's not worth coding though.
IMHO not really.
Cheers Lex
Lex Trotman a écrit le 2011-09-09 01:55 :
You have marking search matches and markers confused. Markers are the little yellow arrow and the plus sign that appear in the margin. Those are what is affected by the marker_translucency setting, not the marked search matches, which is what you were comparing to gedit. The two values of marker_translucency are used for the arrow and the plus respectively.
Thanks for these precisions. However, I'm still not able to make "marker_translucency" have any effect. See the attached screenshot. There are 4 different settings for "marker_translucency", but the little yellow arrow and the plus sign appearing in the margin don't change. For each modification, I closed Geany and opened it again to be sure it was using new settings in my .conf.
Regards,
Jean-Philippe
On Fri, 09 Sep 2011 10:55:33 -0400 Jean-Philippe Fleury contact@jpfleury.net wrote:
Thanks for these precisions. However, I'm still not able to make "marker_translucency" have any effect. See the attached screenshot. There are 4 different settings for "marker_translucency", but the little yellow arrow and the plus sign appearing in the margin don't change.
With the Markers Margin hidden, you don't have arrow or plus, so the entire line is highlighted instead, with background = 2nd argument of marker_line and transluency = 1st argument of marker_translucency. Blending the arrow or plus sign would a bit pointless.
For each modification, I closed Geany and opened it again to be sure it was using new settings in my .conf.
If you open the standard geany.conf in Geany, the changes are applied immediately on Save. At least the highlighting.
On Fri, 9 Sep 2011 20:44:53 +0300 Dimitar Zhekov dimitar.zhekov@gmail.com wrote:
With the Markers Margin hidden, you don't have arrow or plus, so the background = 2nd argument of marker_line and transluency = 1st argument of marker_translucency.
The above for the line marker (arrow) only. The marked lines (plus) have background = 2nd arguments of marker_mark and marker_translucency.
Dimitar Zhekov a écrit le 2011-09-09 13:44 :
With the Markers Margin hidden, you don't have arrow or plus, so the entire line is highlighted instead, with background = 2nd argument of marker_line and transluency = 1st argument of marker_translucency. Blending the arrow or plus sign would a bit pointless.
Thanks. It could be added in the manual (applied when markers margin is hidden).
Unfortunately, I'm still not able to make "marker_translucency" have any effect, even when markers margin is hidden. See the attached screenshot. The entire line is highlighted, but the first argument of "marker_translucency" is not used.
Regards,
Jean-Philippe
On 10 September 2011 04:22, Jean-Philippe Fleury contact@jpfleury.net wrote:
Dimitar Zhekov a écrit le 2011-09-09 13:44 :
With the Markers Margin hidden, you don't have arrow or plus, so the entire line is highlighted instead, with background = 2nd argument of marker_line and transluency = 1st argument of marker_translucency. Blending the arrow or plus sign would a bit pointless.
Thanks. It could be added in the manual (applied when markers margin is hidden).
Yes, and the confusion over the use of the second value could be fixed.
Unfortunately, I'm still not able to make "marker_translucency" have any effect, even when markers margin is hidden. See the attached screenshot. The entire line is highlighted, but the first argument of "marker_translucency" is not used.
Works for me, see attached with
marker_line = 0x000000;0xffff00 marker_translucency=200;200
I'm not sure what else to suggest.
Cheers Lex
Regards,
Jean-Philippe
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Lex Trotman a écrit le 2011-09-09 20:40 :
Works for me, see attached with
marker_line = 0x000000;0xffff00 marker_translucency=200;200
I'm not sure what else to suggest.
Thanks for your help. I'll try with next versions of Geany. Maybe my problem will be solved.
Regards,
Jean-Philippe