Ubuntu 22.04 Mate 上的 Scite:选中时无法读取文本(选择全黑)?

Ubuntu 22.04 Mate 上的 Scite:选中时无法读取文本(选择全黑)?

我通常使用 Scite 作为我的主要文本编辑器,并且我刚刚在 Ubuntu 22.04 上安装了 Mate 桌面,我注意到以下情况 - 当我正常输入文本时,一切都很好:

scite 普通文本

但是当我用鼠标选择文本时,选择内容和文本都完全是黑色的,在这种情况下文本是不可读的:

scite 选定的文本为黑色

我觉得这非常恼人。

顺便说一下,我的用户选项文件中有这个~/.SciTEUser.properties

if PLAT_WINNT
    selection.alpha=32
    selection.back=#000000
if PLAT_GTK
    selection.alpha=60
    selection.back=#000000
selection.multiple=1
selection.additional.fore=#0000AA
selection.additional.back=#880000
selection.additional.alpha=60

因此显然“选择”的“alpha”似乎不再起作用了(尽管过去 10 年它对我的许多 Ubuntu 都有效)。

我怎样才能选择再次显示文本,就像通常那样?

答案1

好的,明白了 - 颜色的规格从十六进制 RGB 更改为十六进制 RGBA......只是通常的变化,进步的通常代价 - 浪费时间......

# selection colors - too low - going from 30 to 60
if PLAT_WINNT
  # NB: for newer scite (5.2.1 on ubuntu 22.04), this is also RGBA
  selection.alpha=32
  selection.back=#000000
if PLAT_GTK
  ## .alpha seems ignored in ubuntu 22.04/scite 5.2.1 (60 = 0x3C)
  selection.alpha=60
  ## in ubuntu 22.04, selection.back=#444444 as RGB ends up with no alpha at all!
  ##selection.back=#444444
  ## that is because in 22.04, SciTEGlobal properties indicates now these
  ## colors are specified as RGBA, that is, selection.back=#0000001E
  selection.back=#0000003C
  ## in ubuntu 22.04, if .back active as RGB, .fore is ignored (else it works)!
  ##selection.fore=#FF0000
  ## in ubuntu 22.04, there is also: selection.secondary.back=#00800010
selection.multiple=1
# RGBA for scite on ubuntu 22.04 - but just RGB also worksforme:
selection.additional.fore=#0000AA
##selection.additional.back=#880000
##selection.additional.alpha=60
# RGBA for scite on ubuntu 22.04:
selection.additional.back=#0000003C

现在它看上去和以前一样好:

再次确认

相关内容