Adriaan de Groot
da1cc7c3a5
[libcalamaresui] Don't clear the map when inserting strings
...
- the documentation doesn't say the map is cleared, and the one
place this function is used doesn't need that either.
- make type of config explicit
2020-07-09 08:46:16 +02:00
Adriaan de Groot
022045ae05
[libcalamaresui] Refactor loading slideshow
...
- split into a separate method
- when QML is disabled, warn about QML settings
2020-05-14 17:04:35 +02:00
Adriaan de Groot
c83e5c57a4
[libcalamaresui] When QML is off, there is no Qml panel flavor
2020-05-14 16:57:14 +02:00
Adriaan de Groot
5aafa0f4c4
[libcalamaresui] Expose slideshow image names for API -1
...
- Branding shows the slide pathnames or the slide QML, depending
on selected API (which depends on the config-file).
- Use one slideshow or the other.
2020-05-13 17:19:46 +02:00
Adriaan de Groot
bb2b5fd982
[libcalamaresui] No reason for bail() to be a method
2020-05-07 20:41:40 +02:00
Adriaan de Groot
526716556c
[libcalamaresui] Store the slideshow-from-images data
...
- This code has existed for a long time but never stored anything
to the Branding object, and the most literal slideshow (just some
images) was not implemented.
2020-05-07 19:02:38 +02:00
Adriaan de Groot
cd44f548f5
[libcalamaresui] Add donateUrl to the branding settings
...
SEE #1384
2020-05-06 14:34:37 +02:00
Adriaan de Groot
1d44c88e0a
[libcalamaresui] Refactor loading of stylesheet
...
- prep-work for adding special-case styling for productWallpaper
2020-04-30 12:18:15 +02:00
Adriaan de Groot
ddde817abf
[libcalamaresui] Apply coding style
2020-04-30 12:10:09 +02:00
Adriaan de Groot
86ffab1873
[libcalamares] Use convenience Logger::NoQuote
2020-04-21 16:46:48 +02:00
bill-auger
7bce58f6f2
[welcome] add optional branding banner to welcome page
2020-04-19 04:01:22 -04:00
Adriaan de Groot
e15e7d1dc5
[libcalamaresui] Load panel-side settings
...
- Introduce an enum for panel-side
- Expose this to QML -- I can imagine that QML panels need to know
which side of the Calamares window they're on.
- Refactor loading the setting into a method that handles both
flavor and side
2020-04-03 11:05:37 +02:00
Adriaan de Groot
57e6864902
[libcalamaresui] Add panel flavor
...
- rename enum to more general PanelFlavor
- introduce branding settings for navigation (e.g. for switching
the navigation buttons off, or using QML)
2020-04-01 11:13:41 +02:00
Adriaan de Groot
d4083c9bbb
[libcalamaresui] Add "hidden" as alias for "none" in sidebar settings
2020-04-01 11:07:23 +02:00
Adriaan de Groot
3b0c0435bc
[libcalamaresui] Chase API change in Yaml
...
- We can drop a bunch of calls to toMap() now.
2020-03-20 21:55:03 +01:00
Adriaan de Groot
80f49bed1d
[libcalamaresui] Add a sidebar flavor setting
2020-03-10 17:59:06 -05:00
Camilo Higuita
1f2f1a657e
[libcalamaresui] Expose Branding strings to QML
2020-02-12 13:57:26 +01:00
Adriaan de Groot
17d09342e9
[libcalamaresui] Add a setting for window placement
2020-01-07 00:27:11 +01:00
Adriaan de Groot
8ab0fb4e5f
[libcalamaresui] Apply coding style (missed earlier)
2019-08-27 15:58:09 +02:00
Adriaan de Groot
85f5410735
[libcalamaresui] Apply coding style
2019-08-22 10:25:16 +02:00
Adriaan de Groot
e7dedbbfe0
[libcalamaresui] Apply coding style to remainder
2019-08-13 21:07:46 +02:00
Adriaan de Groot
739363cecd
[libcalamaresui] Fix initialization order (reduce warnings)
2019-08-09 16:28:29 +02:00
Adriaan de Groot
148b829591
[libcalamares] Introduce slideshowAPI setting
2019-06-17 10:58:14 +02:00
Adriaan de Groot
75ce391e7e
[libcalamaresui] Add branding-aware function for loading image by name
2019-05-31 17:27:11 +02:00
Adriaan de Groot
1438729b72
[libcalamaresui] Do filename checks more sanely
...
- check directory exists before trying to open file from it
- re-use the componentDir already found for later tests.
2019-05-31 17:27:11 +02:00
Adriaan de Groot
976ad7e3e7
[libcalamaresui] Look up icons via theme
...
- Don't cache icons, because they could be changed via
the active desktop theme.
2019-05-27 15:35:56 +02:00
Adriaan de Groot
822bbaad9c
[libcalamaresui] Allow icon names in branding images
...
- It's ok to use path / filenames in images, but you can also
use icon names according to the FDO icon spec. This makes
sense for at least *productLogo*, possibly *productIcon*, but
not really for *productWelcome*.
2019-05-27 15:26:57 +02:00
Adriaan de Groot
cd38ded8d5
[libcalamaresui] Support os-release substitutions in images
...
- Branding images might want to use os-release data as well.
- Refactor a little to keep the number of #ifdefs the same;
an intermediate expand() lambda handles expansion (or not,
if it's not enabled).
FIXES #1153
2019-05-21 17:12:00 +02:00
Adriaan de Groot
ac941e6756
[libcalamares] Implement reload-stylesheet
...
- From the debug-window, clicking *reload stylesheet* does just
that, and applies the new stylesheet to the Calamares window.
- Remove stylesheet caching from the Branding class; we only
need the sheet once (on Calamares startup) or when updating
the stylesheet, which is seldom-enough that we don't need
to keep an extra copy around.
- To use, start Calamares, open the debug window, open stylesheet.qss
in an editor. Make changes, save, then click *reload stylesheet*.
SEE #1149
2019-05-21 13:21:47 +02:00
Adriaan de Groot
af73d90b7b
[libcalamaresui] Fix build with KOSRelease
...
- initialization of the hash was all wrong
- special-case ID_LIKE
- typo's
- link to CoreAddons
2019-05-20 22:54:54 +02:00
Adriaan de Groot
fbbbe63642
[libcalamaresui] WIP: Use KOSRelease and KMacroExpander in branding
...
- allows you to use -- at runtime -- values from os-release in the
branding file.
- WIP because the only machine I have with sufficiently new KF5
is the FreeBSD box.
2019-05-20 22:11:11 +02:00
Adriaan de Groot
92d0e71029
[libcalamaresui] one more refactor for string-loading
...
- Do the checking for IsMap inside loadStrings() and use
YAML::Exception to get to bail() (since we're already dealing
with exceptions here, no extra costs). This tidies up the code
somewhat.
2019-05-20 17:03:32 +02:00
Adriaan de Groot
667f78c016
[libcalamaresui] if there's a YAML exception in branding, bail
...
- all kinds of type errors result in bailing out, but a totally
broken branding file does not?
2019-05-20 17:03:28 +02:00
Adriaan de Groot
62328c9940
[libcalamaresui] images-strings loading fixed
...
- move the string-munge into a lambda and use the generic loadStrings()
2019-05-20 17:03:17 +02:00
Adriaan de Groot
544d905b2f
[libcalamaresui] WIP: refactor again
...
- the string-manipulation can be done through a lambda. That makes
handling *strings* and *styles* simple.
- still doesn't compile.
2019-05-20 17:03:17 +02:00
Adriaan de Groot
5a126816f4
[libcalamaresui] WIP: refactor copying strings from config to Branding
...
- this is mostly to make the constructor easier to read by
moving parts of the story to easily-understood methods.
- doesn't actually compile.
2019-05-20 17:03:08 +02:00
Adriaan de Groot
8d0f076591
[libcalamares] Rename CalamaresUtils -> String
...
- The only remaining functions in the file are string-related, so
rename to match their purpose.
- Drop this include file from most places, since they don't actually
use the string functionality at all.
2019-04-29 06:49:16 -04:00
Adriaan de Groot
f076dd76ad
[libcalamares] Rename YamlUtils.h
...
- Since we have the utils/ filesystem namespace, and use CalamaresUtils::
as C++ namespace, simplify naming.
2019-04-29 06:14:21 -04:00
Adriaan de Groot
08e4090354
Merge remote-tracking branch 'origin/raurodse-branding'
...
FIXES #961
2019-04-23 16:41:22 -04:00
Adriaan de Groot
c83395ff6d
Reduce warnings for yaml-cpp
...
- Use only utils/YamlUtils.h to pull in yaml-cpp and supporting code.
- When compiling with clang, turn off warnings that the system header
for yaml-cpp would generate.
2019-04-18 12:06:09 +02:00
Adriaan de Groot
5a95bf507f
[libcalamaresui] Improve WindowDimensions class
...
- Make sure the class knows its own suffixes
2019-04-11 15:14:31 +02:00
Adriaan de Groot
8dd22dcbbf
[libcalamaresui] bail() is a [[noreturn]] function
2019-04-11 15:14:31 +02:00
Adriaan de Groot
12665192ae
[libcalamaresui] Defend against missing config settings
2019-01-14 15:30:44 +01:00
Adriaan de Groot
80569a746f
[libcalamaresui] Relax validity check in branding
...
- A size of 64em has a value less than 1024, which is the minimum
size **in pixels**. The check doesn't make sense as-is and would
have to take the unit into account. Leave that to clients of
branding (e.g. CalamaresWindow, which already does this).
2019-01-14 13:42:41 +01:00
Adriaan de Groot
32ab377e43
[libcalamaresui] Record branding window-size
2019-01-14 12:06:04 +01:00
Adriaan de Groot
819a57e458
[libcalamaresui] Store resize configuration
...
- Use the named enums code for simplicity.
2019-01-11 17:35:06 +01:00
Adriaan de Groot
dd8e53dc22
Copyright: update copyright lines on files touched in 2018
...
Contributions from:
Adriaan de Groot <groot@kde.org>
Gabriel Craciunescu <crazy@frugalware.org>
AlmAck <gluca86@gmail.com>
Andrius Štikonas <andrius@stikonas.eu>
Caio Carvalho <caiojcarvalho@gmail.com>
Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
fdda0e14aa
[libcalamaresui] Improve explainYamlException
...
- overloads for common kinds of label
- improve error reporting when reading settings and branding files
2018-05-24 06:46:11 -04:00
Adriaan de Groot
2413180c67
Branding: update copyright notices
2018-05-22 05:47:14 -04:00
Adriaan de Groot
5bcfb32cf5
Branding: move the branding stylesheet to the Branding class
2018-05-22 05:43:59 -04:00