Commit Graph

58 Commits

Author SHA1 Message Date
minde a79f630a37 Replace radical.widgets.checkbox with wibox.widget.checkbox
Radical checkbox widget is no longer needed, it still here,
but no longer used, maybe @Elv13 have some plans with it.
2016-10-22 18:05:38 +03:00
Emmanuel Lepage Vallee d3d09989fd widgets: Add a slider widgets
Requires a recent Awesome version.
2016-07-28 03:02:08 -04:00
Emmanuel Lepage Vallee 08d9ac6a16 infoshape: Misc fixes 2016-07-28 03:00:54 -04:00
Emmanuel Lepage Vallee b0ad3e996b grid: Fix some bugs 2016-07-23 18:20:45 -04:00
Emmanuel Lepage Vallee f15738e49a widget: Rewrite the checkbox as a 'real' widget
It was previously an image used by imagebox. This doesn't
support multi DPI and was an artefact of Awesome 3.4.
2016-07-04 04:14:52 -04:00
Emmanuel Lepage Vallee d53dc2e5d3 grid: Use the 'real' grid layout 2016-07-04 02:50:15 -04:00
Emmanuel Lepage Vallee 62699d8ff3 widgets: Add a grid layout [WIP]
In a quest to get rid of all fit/draw monkeypatching, this
commit add a proper grid layout. It is currently as good
as the old layout/grid.lua hack, but not "correct" used outside
of Radical menus (swap/insert/remove are also broken) and it
fail to handle many corner case.
2016-07-04 02:43:58 -04:00
Emmanuel Lepage Vallee facf681a04 piechart: Drop cache mechanism and update indentation 2016-06-28 17:45:36 -04:00
Emmanuel Lepage Vallee 38f589903b piechart: Fix cache and update API 2016-06-28 17:25:56 -04:00
Emmanuel Lepage Vallee b872fef155 fkey: Rewrite (with some more sanity) 2016-06-27 02:13:08 -04:00
Emmanuel Lepage Vallee 078307aef1 widgets: Add text widget
Automatic text scaling to fill an area
2016-06-27 02:11:41 -04:00
Emmanuel Lepage Vallee b57b001f99 quality: Fix more luacheck warnings
And remove unmaintained and broken files
2016-06-24 16:53:54 -04:00
Emmanuel Lepage Vallee cbfe266b4a quality: Begin to fix luacheck warnings 2016-06-24 02:02:40 -04:00
Emmanuel Lepage Vallee eb47be500b api: Update file to match new upstream Awesome APIs
Also has some bug fixes mixed in the patch.

The Radical placement API is now fully upstreamed.
2016-06-24 00:49:49 -04:00
Emmanuel Lepage Vallee 1c55d4a0c6 Fix the fkey widget 2016-06-23 00:02:30 -04:00
Emmanuel Lepage Vallee bcd6c7c2cd placement: Re-introduce many placements features lost during the re-write
The menu can be attached to a widget or the mouse again, and more

This commit also fix some tasklist/taglist issues and introduce minor
features like item.shape.
2016-03-14 17:52:28 -04:00
Emmanuel Lepage Vallee c1285321a1 infoshapes: Fix borders 2016-03-06 03:31:07 -05:00
Emmanuel Lepage Vallee 93fdf17096 filter: Rewrite the filter widget 2016-03-05 02:54:17 -05:00
Emmanuel Lepage Vallee 1f5d7f4278 cleanup: Port scrolling to Awesome 3.6 visible widget API
It still doesn't work, but at least there is no logic duplication
with Awesome anymore.
2016-02-28 05:00:44 -05:00
Emmanuel Lepage Vallee 18c9071baf cleanup: Remove overlay/underlay hacks, re-implement as widgets container
There is a new widget called `infoshapes`. It support all the features
from the underlay system, but is a lot less intrusive. This allow to
make some code simpler.

This is another step in getting rid of all the hacks.
2016-02-28 02:04:51 -05:00
Emmanuel Lepage Vallee 1e6d66f8ec Fix compatibility with LGI 0.9
Also add a 1px padding for checkboxes
2016-02-19 03:29:40 -05:00
Emmanuel Lepage Vallee 0256412462 Begin the big changes for 3.6
Lots of things will break, hopefully for the better (eventually)

This commit use new upstream APIs:

 * Many cairo paths have been replaced with gears.shape and gears.matrix

This commit add some features:

 * Improved border_color support, now available per state
 * bg_image support, now available per state
 * Mutualize the state setting, remove duplicated code

Regressions:

 * The arrow menu background border is off by a pixel
 * The layout position problem reported by @mindeunix is now worst.

The positioning algo is full of race conditions and cannot be fixed
without a full rewrite. This commit break more things than it solve
and the code is in the middle of a transition. This will be solved
by future commits addressing the code quality (after the refactoring).
2016-02-11 01:36:50 -05:00
Emmanuel Lepage Vallee 7a0ea0507f common: Make overlay support available to all widgets
This is the first step toward removing the underlay/overlay from
all item.style and item.layout and use the common implementation.

This will simplify the code a lot.
2015-12-29 08:38:02 -05:00
Emmanuel Lepage Vallee d57c46a5f0 Port to the new Awesome widget system
This commit fix most issues introduced by the new widget system. It
is not production ready and will require multiple commits to fix
individual issues.

The new widget system is better suited for modules like Radical than
the previous one. Over time, this breakage will probably end up being
a good thing. However, for now, expect multiple errors.

The changes:

 * The draw "wibox" argument is now a "context". "context.wibox" is
   the equivalent. This will allow passing the Radical structure to
   the draw method without storing it in the widgets.
 * "fit" now have a new required "context" argument for the DPI, this
   will allow removing the "default_height" variable Radical is using
   to scale the UI on HIDPI systems. This will allow size policies to
   be passed to the fit method
 * "draw" has been splitted into "draw", "draw_before_children",
   "draw_after_children" and "layout". This simplify the overlay
   system and will allow cleaner code
 * Drawing outside of the widget clip is no longer supported, this
   break multiple Radical item.style. This will allow better
   performance and less redraw once the new system issues have been
   fixed
2015-12-29 05:19:23 -05:00
Emmanuel Lepage Vallee 75e560995c Fix pango API misuse, add pie-chart cache 2015-03-15 16:25:41 -04:00
Emmanuel Lepage Vallee da08a267cf Add rounded + shadow item style 2015-01-10 23:59:51 -05:00
Emmanuel Lepage Vallee 31e5c3dd5c Fix issue #29 2014-11-23 00:32:13 -05:00
Emmanuel Lepage Vallee 03090fa2ec Add a bunch of skining options 2014-11-14 23:46:06 -05:00
Emmanuel Lepage Vallee 72e9fea65b Fix multiple minor bugs/regressions 2014-05-31 23:45:46 -04:00
Emmanuel Lepage Vallee f746a8b347 Make async menu faster
This may cause some visual artefacts, but is about 5 time
faster than the old way.
2014-03-23 19:00:56 -04:00
Emmanuel Lepage Vallee 9b9c96be1b Fix a bug when table (widgets) are resized 2014-03-22 17:03:04 -04:00
Emmanuel Lepage Vallee 2c9bd9107f Fil multiple minor issues related to fg and underlay colors 2014-03-13 01:14:52 -04:00
Emmanuel Lepage Vallee 5d21035698 Add some filter options 2014-03-12 22:56:56 -04:00
Emmanuel Lepage Vallee 231eef25bc Add global underlay support 2014-03-12 00:31:50 -04:00
Emmanuel Lepage Vallee 95ed8b26c4 More style/colors oriented refactoring 2014-03-02 16:28:30 -05:00
Emmanuel LEpage Vallee 34e0836e5e Make checkbox resize correctly on retina display 2014-01-20 23:50:35 -05:00
Emmanuel Lepage Vallee 9a03c837c0 Add multi underlay support 2014-01-17 00:34:45 -05:00
Emmanuel Lepage Vallee 5b635e96e5 Move upderlay widget to Radical 2014-01-16 00:25:50 -05:00
Emmanuel Lepage Vallee a1144564ab Replace old item_style attributes by a more flexible array 2014-01-08 00:59:57 -05:00
Emmanuel Lepage Vallee e20c6921dc Make F-key widget scale better to lower size 2014-01-05 22:51:42 -05:00
Emmanuel Lepage Vallee 4db83034b8 Refactor menu layout to maximize code sharing 2014-01-05 01:04:40 -05:00
Emmanuel Lepage Vallee 9aab9b0d3c Add separator widget 2014-01-04 18:51:07 -05:00
Emmanuel Lepage Vallee 5ff71f7385 Add new 'bar' menu type 2014-01-04 00:49:20 -05:00
Emmanuel Lepage Vallee 471c5e0d9f Add the most useless widget of them all, the PieChart 2014-01-01 23:55:55 -05:00
Emmanuel Lepage Vallee ace65ad586 Fix scroll widget 2013-12-31 15:55:51 -05:00
Emmanuel LEpage Vallee 76d34dd93d Improve HiDPI support and fix 0 item submenus 2013-11-10 23:18:23 -05:00
Emmanuel Lepage Vallee 6899f18aac Use header background for table headers (if available) 2013-08-09 03:39:56 -04:00
Emmanuel Lepage Vallee fdfbab2f52 Only display scroll widget when there is enough item 2013-08-09 02:34:49 -04:00
Emmanuel Lepage Vallee 90154d83ab Add README 2013-08-03 01:03:43 -04:00
Emmanuel Lepage Vallee f399a651c5 Fix clear 2013-07-23 02:12:19 -04:00