Commit Graph

113 Commits

Author SHA1 Message Date
Marcel Hollerbach f57ef54ad8 extra: bring a little toolbar to the themes
I liked the popup at the top more than diretly showing the details.
This also refactors the popup showing and hiding into the utils
2017-01-22 22:35:12 +01:00
Marcel Hollerbach 06fed444de extra: hide popup when selector is switched 2017-01-20 10:52:51 +01:00
Marcel Hollerbach bdb41a0b87 extra: add a background selector
this brings a background selector to extra
2017-01-20 10:37:19 +01:00
Marcel Hollerbach 6b5bb23524 extra: refactor those calls into the util
they are also helpfull for other selectors
2017-01-20 00:52:55 +01:00
Marcel Hollerbach d770e2a2b1 extra: add api for backgrounds 2017-01-20 00:52:22 +01:00
Marcel Hollerbach 7f1424b2d2 extra: this refactors the json parsing
This refactors the json parsing into its single file, the parsing is now
much lesser work. It also adds the downloading of the available background images
in the sync call
2017-01-17 18:35:01 +01:00
Marcel Hollerbach a458862760 Merge branch 'devs/bu5hm4n/ui-change'
This merges a new interface for extra. This brings:

1. Grid selection. There is a grid where you can select between the
themes. Themes are displayed with theire screenshots and names.

2. The state of the theme is be displayed. A theme can be downloaded,
set as default, or old-version available.

3. Different operations depending on the state of the theme. You have a
button to set a theme as default. Update the downloaded file. Or install
it, for the case its not even downloaded.
2017-01-15 21:16:30 +01:00
Marcel Hollerbach 7015ae49ee extra: validate input parameters 2017-01-15 21:12:15 +01:00
Marcel Hollerbach c4785eaa5b extra: bring first in 2017-01-15 21:09:46 +01:00
Andy Williams 39368a041b Remove warnings and dupe code 2017-01-15 21:09:46 +01:00
Marcel Hollerbach 9d4a263b81 extra: lets add operations depending on the state 2017-01-15 11:28:55 +01:00
Marcel Hollerbach 8545c9e1a3 extra: free the iterator, so the file is really closed 2017-01-15 10:53:52 +01:00
Marcel Hollerbach 264625f496 extra: add indicators to the grid so the state of the theme is known 2017-01-14 23:20:42 +01:00
Marcel Hollerbach 7bc64a439f extra: add more api calls
You can check now if there is a old version, or if the theme is set as
default.
2017-01-14 22:58:50 +01:00
Marcel Hollerbach fd69b2797b extra: remove file if the exit code is not 200 2017-01-14 22:58:50 +01:00
Marcel Hollerbach bec53e0c59 extra: change the theme selector from a list with names to a grid
the new ui brings a grid selection so the user can see the screenshot of
each theme when scrolling through it. This also refactors the progress
popup creation into its own file.
2017-01-14 22:58:44 +01:00
Marcel Hollerbach 285cb4864a extra: add a data field to the progress struct
the data field will be passed to the callback when its called.
2017-01-14 14:04:11 +01:00
Marcel Hollerbach 4a3007e094 extra: lets change the cursor here 2017-01-12 14:20:25 +01:00
Marcel Hollerbach 4c05710d49 extra: show the image as fullscreen when it gets clicked 2017-01-12 12:24:00 +01:00
Marcel Hollerbach bef597729e build: init submodules when calling autogen.sh
if one submodule is not initializied it will run submodule update --init
  --recursive, which will download the files that are needed.

The whole thing is also just called if you are in a git repository so
nothing of that magic is done when a tarbal is downloaded and shipped.
2017-01-10 17:26:24 +01:00
Andy Williams d11e1a00d3 General refactoring 2017-01-10 12:17:55 +00:00
Marcel Hollerbach 47c299aa37 extra: complile with c99 if possible 2017-01-10 10:26:44 +01:00
Andy Williams 8a36b3c080 free correctt object 2017-01-09 23:28:16 +00:00
Marcel Hollerbach b04e0fcd5d extra: use strbuf
the other calculation was a bit rough to read. And strbuf handles that better.
2017-01-09 22:22:28 +01:00
Marcel Hollerbach 8c786787de use the normal url there may be someone without ssh 2017-01-09 22:14:15 +01:00
Marcel Hollerbach d2c0eed7e2 extra: generate the theme cache var with efreet api
there can be some people who are changing the cache home directory to
some other value than the standard xdg stuff.
2017-01-09 22:06:20 +01:00
Marcel Hollerbach 439e748db0 extra: make sure the downloads are only started once
otherwise we could overwrite the image and invalidate it.
2017-01-09 22:02:07 +01:00
Marcel Hollerbach 7175cb317b extra: implement image caching
this just downloads the images to a cache location
2017-01-09 21:44:08 +01:00
Marcel Hollerbach 524fd6169b extra: add a few things
in the one line was a missing ";"

The lib is now also checking that the extra directory really exists
before writing files there. And the cache file is created in any way.
2017-01-09 21:27:41 +01:00
Andy Williams f515c7afa2 cache: Add a theme cache if you want to work 'offline'
Add a skip option as well so you can just load the cache instead
2017-01-09 19:40:05 +00:00
Andy Williams 9009dc4fce ui: fix warning from changing entry to label 2017-01-09 19:31:40 +00:00
Marcel Hollerbach ea26eb5d5e extra: put all ui elements in a struct so they are a bit sorted 2017-01-09 16:44:44 +01:00
Marcel Hollerbach 4b28a5d844 extra: refactor progress popup
this refactors the progress displaying of hte popups and progress calls
from the lib.
2017-01-09 16:24:59 +01:00
Marcel Hollerbach 443d899a12 extra: we are not in a thread 2017-01-09 16:18:35 +01:00
Marcel Hollerbach 153b725b7f extra: delete the popup 2017-01-09 16:18:07 +01:00
Marcel Hollerbach e34b3a700a add myself to the authors 2017-01-09 16:11:28 +01:00
Marcel Hollerbach d286cde3bd extra: make the api pass a Extra_Theme
this makes the whole thing a bit nicer to read and better to use.
2017-01-09 16:07:19 +01:00
Andy Williams 10cb30eb41 Update desktop details for menus 2017-01-08 22:43:54 +00:00
Marcel Hollerbach 1c3e79056e extra: bring a popup that asks for settings the default 2017-01-08 13:09:33 +01:00
Marcel Hollerbach 5f00d5a224 extra: refactor install into download and use 2017-01-08 13:09:13 +01:00
Marcel Hollerbach a715d8021d extra: remove those warnings 2017-01-08 12:05:24 +01:00
Marcel Hollerbach c1cedbcc05 extra: the config does not always end with a / 2017-01-08 12:00:06 +01:00
Marcel Hollerbach fe0f1138f6 build: complain if the submodule was not used correctly 2017-01-08 11:59:17 +01:00
Marcel Hollerbach fadf110457 extra: lets give it a README 2017-01-08 11:59:01 +01:00
Marcel Hollerbach 1bdb989595 extra: do not device by 0 2017-01-03 17:59:11 +01:00
Andy Williams 2d937075ca ui: slight re-layout for better clarity 2017-01-01 13:56:47 +00:00
Marcel Hollerbach 2e657175dc extra: silence this warning 2016-12-30 20:23:22 +01:00
Marcel Hollerbach 2a17f517ad extra: make filename depend on version
otherwise we are never getting updates.
2016-12-30 20:22:55 +01:00
Marcel Hollerbach c67d894cda extra: add a icon if it is installed 2016-12-30 19:55:10 +01:00
Marcel Hollerbach 3d184725b5 extra: remove unused vars 2016-12-30 19:43:56 +01:00