summaryrefslogtreecommitdiff
path: root/src/baobab-ringschart.vala
Commit message (Collapse)AuthorAgeFilesLines
* Port to GTK4+libadwaitaChristopher Davis2021-10-081-5/+2
| | | | | | | | | | | | This commit ports baobab to GTK and makes use of libadwaita widgets and styling. Things depending on Events have been reworked to use shortcuts and eventcontrollers, like drag and drop or the various shortcuts for the treeview. There have also been tweaks to the styling made to fit in better with the new Adwaita look and feel.
* Move color definitions to the CSSStefano Facchini2020-06-131-7/+2
| | | | And do some cleanup.
* Do not use deprecated GtkStyleContext methodsStefano Facchini2020-06-101-5/+6
|
* css: update to recent GTK+ changesStefano Facchini2016-02-281-1/+4
|
* Ringchart: always use the correct state when getting colorsSebastian Keller2015-09-101-5/+13
| | | | | | | | | | | | | | | The ringchart was calling get_background_color on the toplevel context with a fixed state of NORMAL without saving the context first. If the toplevel however had additional state flags set, such as BACKDROP, this could trigger an invalidation and cause a redraw, resulting in a redraw loop. Instead of saving/restoring the context, this patch uses the current state of the context, which is the right thing to do in general anyway and does not require saving/restoring the context unless the context is actually modified. https://bugzilla.gnome.org/show_bug.cgi?id=754703
* chart: Do not use an offscreen surface anymoreStefano Facchini2015-02-171-4/+5
| | | | | | | It's causing problems when hidpi scale factor is bigger than 1. As for the background color, we can fetch it from the toplevel window. https://bugzilla.gnome.org/show_bug.cgi?id=742394
* ringschart: tooltip improvementsStefano Facchini2014-07-131-6/+3
| | | | | 1. Tooltips are now painted starting from the biggest element. 2. Text is ellipsized if too long, instead of just hiding the tooltip.
* Use an offscreen surface for chart drawingStefano Facchini2014-07-061-6/+4
| | | | | | | | | | Previously the border between angular sectors in Ringschart was obtained by a cairo_stroke() with the background color. The problem with this is that we needed to fetch the color from the theme somehow and this was not always possible (for instance the HighContrast theme does not define @theme_bg_color). Now we just draw to an offscreen surface and obtain the borders by clearing the relevant pixels. The surface is finally painted on the window.
* CSS fixesStefano Facchini2014-07-051-0/+5
|
* Ringschart: fix a warningStefano Facchini2014-04-011-1/+2
|
* Ringschart: hardcode subfolder tip timeoutStefano Facchini2013-07-081-4/+4
| | | | | The gtk-tooltip-timeout setting is being deprecated in favor of a hardcoded value. We hardcode our timeout to twice the GTK+ value.
* Ringschart: fix drawing artifactsStefano Facchini2013-06-161-4/+4
|
* Ringschart: write the folder size in the central diskStefano Facchini2013-06-161-0/+15
|
* Ringschart: redesign central diskStefano Facchini2013-06-161-44/+36
| | | | | | | Redesign the central disk, leaving it transparent and adding a thin border when there are no children sectors. While at it, consolidate the code for drawing a sector in a single method.
* Ringschart: clear subtips when changing rootStefano Facchini2013-06-161-0/+1
|
* Ringschart: use background color for sector bordersStefano Facchini2013-06-141-1/+1
| | | | Designer's request
* Ringschart: clip subfolder tip line outside tooltip areaStefano Facchini2013-06-141-0/+10
| | | | | | Depending on the theme, the tooltip background could be partially transparent, so clip the line to avoid it being visible below the tooltip.
* Ringschart: make use of CSSStefano Facchini2013-06-131-30/+28
| | | | | | Instead of hardcoding colors, padding, subfolder tips styling. Requires up-to-date gnome-themes-standard.
* Port chart widgets to ValaStefano Facchini2013-06-131-0/+399
Almost a line-by-line translation of the original C code. Main differences are: * _freeze() and _thaw() methods are removed (now useless as a spinner is used for the busy state * GObject properties are used throughout the code * contextual menu implemented with GMenu/GActions * slight rework of the subfolder tips code in RingsChart