Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 Gtk 开发一个桌面应用程序。在设计带有文本框的对话框时,我注意到文本突出显示颜色与 UI 设计要求不匹配。我默认看到的颜色是蓝色阴影,但我希望它是橙色阴影。为清楚起见,请参阅附图。
我尝试过设置背景/基础之类的方法,但它不起作用。
entry.modify_bg(Gtk::STATE_SELECTED,Gdk::Color.parse("orange"))
知道如何让它以我想要的方式工作吗?对于它的价值,我正在使用 Gtk 作为前端框架的 Ruby 进行编程。