Commit Graph

13 Commits

Author SHA1 Message Date
2d7e21ed7d fix: lint 2022-10-26 17:26:15 +02:00
64849f52c9 fixed memory module not rounding numbers 2022-10-22 02:31:14 +02:00
2b735f44bc modules: Set tooltip on button
Mouse-over tooltips set on the label only appear once the mouse hovers
over exactly the label. Other apps (e.g. firefox) show the tooltip once
the pointer hovers the button. Not solely its label. With this commit we
get the same behaviour.
2022-10-12 10:25:30 +02:00
b8322c4b4b button: Add AButton class
The AButton class is designed as full a substitute to ALabel. The
GtkButton attribute 'button_' is initialized with a label. This
label can the be referenced by the subsequent inheritors of AButton
instead of the GtkLabel attribute 'label_' of ALabel.
For convenience a GtkLabel* 'label_' attribute is added to AButton.

If the button cannot be clicked it is disabled, effectively acting
like its label predecessor.

GtkButton seems to catch one-click mouse events regardless of the
flags set on it. Therefore, 'signal_pressed' is connected to a
function creating a fake GdkEventButton* and calling 'handleToggle'
(for details on this possible bug in GTK see:
https://stackoverflow.com/questions/45334911 )

In accordance with other GtkButtons (i.e. the sway/workspace ones)
set_relief(Gtk::RELIEF_NONE) is called on the 'button_' instance.
2022-10-12 10:25:29 +02:00
a1129c4c87 fix: bsd 2022-04-06 14:55:08 +02:00
f2fcadbf62 refactor: lint 2022-04-06 08:37:19 +02:00
9ae99c2621 Merge pull request #1386 from Anakael/pr/anakael/add-swap-flags
[Memory] feat: Add swap flags
2022-01-12 11:08:50 +01:00
decb13eef0 mark zfs arc size as free in memory 2021-10-28 19:10:46 +02:00
94e53c3777 Add swap flags 2021-08-29 16:34:29 +03:00
7b4b5e55a2 support format-icon for cpu und memory 2021-08-23 07:30:19 +02:00
4229e9b2ca Implemented format-{state} for cpu/disk/memory 2020-10-12 02:05:26 +02:00
225a0eccdd Add support for memory tooltip 2020-09-02 14:35:39 +02:00
c4f7cdeec4 memory: port parseMeminfo to BSDs 2020-05-19 10:42:21 +00:00