[Github-comments] [geany/geany] Theme improvements (#1382)

Colomban Wendling notifications at xxxxx
Mon Jan 30 13:18:00 UTC 2017


b4n commented on this pull request.



> @@ -56,8 +56,8 @@ style "geany-compiler-error-style" {
     fg[ACTIVE] = "#ffff00000000"
 }
 style "geany-compiler-context-style" {
-    fg[NORMAL] = "#888800000000"
-    fg[ACTIVE] = "#888800000000"
+    fg[NORMAL] = "#7f7f00000000"
+    fg[ACTIVE] = "#7f7f00000000"

> I just went in python and did `hex(int((0x7f/255.0)*65535))` to scale from 8-bit to 16-bit.

Hence the precision loss :)
```pycon
>>> hex(int(0xff/2))
'0x7f'
>>> hex(int(0xffff/2))
'0x7fff'
>>> hex(int(int(0x7fff*0xff/0xffff)/0xff*0xffff))
'0x7f7f'
```

> Would be better to use 8-bit HTML-style notation, if supported.

I think it is supported, just use `"#7f0000"`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170130/5108abf6/attachment.html>


More information about the Github-comments mailing list