sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.55k stars 1.72k forks source link

Support for changing highlight transparency value in config file? #3314

Open m2kar opened 1 year ago

m2kar commented 1 year ago

Could you please add support for changing highlight transparency value from 0 to 100 in config file? In current version, highlight color could be changed, but the highlight transparency value could not be changed.

current config file:

Annotations [
    HighlightColor = #3db2ff
    UnderlineColor = #00ff00
    TextIconColor = #ffff00
    TextIconType = 
    DefaultAuthor = 
]

Thank you!

GitHubRulesOK commented 1 year ago

AFAIK highlight has always had transparency full opacity image image

m2kar commented 1 year ago

Thanks a lot, I got it.

If the color is 6 hex digits, it represents that its defalut opacity is 100%. If it is 8 hexadecimal digits, the value of the first two digits represents the opacity, and the value range is 0x00-0xff.

That is really a hidden feature. It is recommended that you write this in the documentation.

GitHubRulesOK commented 1 year ago

@m2kar hmm it was added over 10 years ago :-) at the time (Mar 6, 2013) to the experimental highlight features by a former developer, thus not officially applied to all colour settings

@kjk do you wish to declare it a permanent feature in settings documentation for highlights ??