Categories: desktopGSoCXFCE

GSoC’22 – File Highlighting in Thunar

 

About the feature

  • The aim of this feature is to enable the user to highlight files/folders across the various different views.
  •  The feature can be toggled on/off through the View Menu.
  •  The highlight color can be selected by navigating to the Highlight tab in the properties dialog of the respective file. The properties dialog can be brought about by selecting the Properties option under the Context Menu  (Right click on the desired file/folder to show the context-menu)

Requirement:

Sponsored
GVFS (Gnome Virtual File System)

Implementation

  • The biggest challenge was figuring out how to paint the highlights on the various different views.
  • The solution was to use a GtkCellLayoutDataFunc that is called on each item of the view. This way we can set the specific background color in the CellRenderer for each of the different items on view.
  • Another challenge that came up was implementing the rounded corners.
  • For this, modifications were made to the IconRenderer & a new custom TextRenderer was introduced. The trick was to use cairo to clip the backgrounds & paint the specific color.

 This feature is possible with the support by Thunar’s lead developers – Alexander Schwinn (alexxcons), Sergios – Anestis Kefalidis (SKefalidis) and Yongha Hwang (MShrimp4).

Sponsored


Ubuntu Server Admin

Recent Posts

Stop Wallpaper Moving when Switching Workspace in Ubuntu 24.04

For GNOME users who don’t like the default workspace switch animation, here’s an extension that…

12 hours ago

Warzone 2100 Released 4.6.0 with Spectator Host Mode

Warzone 2100, the free open-source 3D real-time strategy game, released new major 4.6.0 version few…

2 days ago

What our users make with Ubuntu Pro – Episode 2

How Vaultara achieved FedRAMP compliance with Ubuntu Pro Ubuntu Pro helps businesses worldwide to innovate…

2 days ago

How To Install Zabbix Server 7.4 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

3 days ago

How To Install Zabbix Server 7.2 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

3 days ago

SuperTuxKart 1.5 RC2 added GUI option to Choose Vulkan or DirectX 9

SuperTuxKart, the 3D kart racing game, announced the second release candidate for the next 1.5…

3 days ago