Tag Archives: planet

Some Kate Color Schemas

As already mentioned, Kate Part much better chooses colors from the default KDE color palette configured in System Settings in upcoming KDE SC 4.9. As teaser, here are some examples – hope you like it.

Default “Oxygen” Color Schema

Default “Obsidian Coast” Color Schema 

Dark “Vim” Color Schema

Note: The yellow search background comes from the “Highlight Selection” plugin, which is still a hard-coded yellow. Kate Part’s “Search & Replace”chooses more fitting highlight colors for matching and replaced text.

Color Settings

This week, Kate Part received an update of the “Colors” tab in the settings dialog, available in KDE 4.9. The major features include

  • configurable colors: search highlight, replace highlight and modified line colors – finally :-)
  • possibility to always use colors from the KDE color scheme.
  • the implementation works in a way that at some point, the host application (KDevelop, Kile, …) can put items into this list.

Here are screenshots of the new (top) and the old (bottom) color tab:

The new implementation uses a QTreeWidget along with a custom delegate to draw the colors button and reset icon. It would be nice to have an appearance of the categories like in systemsettings, or like in dolphin. Dolphin probably uses a KCategorizedView, which in turn uses KCategoryDrawer. KCategoryDrawer could be used, but needs fine tuning in order to make it look nice. Does someone know how systemsettings draws the nice shaded backgrounds of the categories?

Scripting in Kate

Since several releases, Kate Part has scripting support through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions:

If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan to extend this, so applications like Kile or KDevelop can reuse Kate’s internal code.

On another note, here is a nice blog about the upcoming KDE 4.8 release :-)