Skip to content

More detailed theming capabilities - #7776

Merged
MorrisJobke merged 1 commit into
masterfrom
theming-capabilties-enhancements
Jan 11, 2018
Merged

More detailed theming capabilities#7776
MorrisJobke merged 1 commit into
masterfrom
theming-capabilties-enhancements

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

This will allow clients to easily check if a custom background or a plain background color is used.

New entries in the capabilities theming section:

 "background-plain": false,
"background-default": true

This will allow clients to easily check if a custom background is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@codecov

codecovBot commented Jan 10, 2018

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@9c01708). Click here to learn what that means.
The diff coverage is 100%.

@@ Coverage Diff @@## master #7776 +/- ##
=========================================
Coverage ? 51.21% Complexity ? 24982 =========================================
Files ? 1607 Lines ? 95021 Branches ? 1376 =========================================
Hits ? 48667 Misses ? 46354 Partials ? 0
Impacted FilesCoverage ΔComplexity Δ
apps/theming/lib/Capabilities.php83.33% <100%> (ø)3 <0> (?)
apps/theming/lib/ThemingDefaults.php91.79% <100%> (ø)46 <0> (?)
apps/theming/lib/Util.php93.47% <100%> (ø)34 <4> (?)

@juliusknorrjuliusknorr added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 11, 2018
@juliusknorrjuliusknorr changed the title WIP: More detailed theming capabilitiesMore detailed theming capabilitiesJan 11, 2018
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

@tobiasKaminsky This is what you asked for the android app. You can now just check for boolean values instead of doing string comparisons 😉

Besides that I'm not sure if we can still bring this in 13? @MorrisJobke

@tobiasKaminsky

Copy link
Copy Markdown
Member

Cool. Would be great to have this in NC13 :-)

@MorrisJobkeMorrisJobke added this to the Nextcloud 13 milestone Jan 11, 2018
@MorrisJobkeMorrisJobke mentioned this pull request Jan 11, 2018
18 tasks

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke
MorrisJobke merged commit aab39ba into masterJan 11, 2018
@MorrisJobke
MorrisJobke deleted the theming-capabilties-enhancements branch January 11, 2018 13:57
@tobiasKaminsky

Copy link
Copy Markdown
Member

I get

<background-plain></background-plain>
<background-default>1</background-default>

on master with set background color and default background image (dots).

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

@tobiasKaminsky The output I posted above was from requesting the capabilities in JSON. It seems like OCS XML responses convert boolean values to 1 for true and empty for false.

Anyway the result is correct. True that the default background image is used, false that a plain background color (without an image) is used.

@tobiasKaminsky

Copy link
Copy Markdown
Member

Thank you for the quick response and explanation 👍

@marinofaggiana

Copy link
Copy Markdown
Member

Nice.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@juliusknorr@tobiasKaminsky@marinofaggiana@nickvergessen@MorrisJobke