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
Adriaan de Groot
975004fc63
[libcalamaresui] Document accessors in Branding
...
- document accessors
- put all path and directory accessors together
- make simple accessors inline
- rename "pathprefix" to "directory" to be consistent with others
2018-05-22 05:28:00 -04:00
Adriaan de Groot
f8bc195fb4
[libcalamaresui] Improve warning when branding has no translation
2018-03-09 07:21:16 -05:00
Adriaan de Groot
3ae126f589
[modules] Use cError() as well
...
- Switch KPMHelpers to using Calamares logging instead of qDebug()
2018-02-13 11:59:38 +01:00
Adriaan de Groot
60f440f72b
[libcalamaresui] Use new convenience logging methods
...
- Remove a few confusing Q_FUNCINFO
2018-02-12 11:58:34 -05:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
6c5199c9cc
YAML: on error, report filename along with location
2017-09-06 05:10:33 -04:00
Adriaan de Groot
594bc37d67
Coverity: uninitialized member
2017-07-11 09:32:09 -04:00
Adriaan de Groot
44e6955f19
Feature: allow disable welcome-logo resizing
2017-07-04 04:30:08 -04:00
Adriaan de Groot
3b5955900e
Coverity: explicit initialization
2017-06-27 06:05:26 -04:00
Adriaan de Groot
ce6997d214
Coverity: fix some uninitialized members
2017-06-17 15:14:02 -04:00
Adriaan de Groot
f1cfde36d6
Allow different welcome message.
...
FIXES #592
2017-06-12 15:25:54 -04:00