Skip to content

Added bell in black (#000000) and grey (#777777)#185

Merged
DeepDiver1975 merged 3 commits intomasterfrom
black-theme
Nov 7, 2018
Merged

Added bell in black (#000000) and grey (#777777)#185
DeepDiver1975 merged 3 commits intomasterfrom
black-theme

Conversation

@ChrisEdS
Copy link
Contributor

@ChrisEdS ChrisEdS commented May 18, 2018

  • Grey bell (#777777)
  • Black bell (#000000)

How to test:

When notification bell appears go to the site inspector (Right click -> inspect)

  1. Click on element selector
  2. Select the bell
  3. Go inside the DIV notifications-button menutoggle hasNotifications
    image
  4. Change the image path to
    notifications-dark.svg
    notifications-grey.svg
    ...
    image

@ChrisEdS ChrisEdS requested a review from michaelstingl May 18, 2018 13:32
Copy link

@michaelstingl michaelstingl left a comment

Choose a reason for hiding this comment

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

please cleanup the SVG's and follow naming convention from other repos

@michaelstingl
Copy link

@tomneedham is it okay to add some more image styles? (colors and names inspired from https://github.com/owncloud/core/tree/master/core/img/actions )

@DeepDiver1975
Copy link
Member

afaik we are controlling icon colors with css on svgs - but maybe I'm mixing up things ..... @felixheidecke

@codecov-io
Copy link

codecov-io commented May 18, 2018

Codecov Report

Merging #185 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #185   +/-   ##
=========================================
  Coverage     89.78%   89.78%           
  Complexity      137      137           
=========================================
  Files            18       18           
  Lines           548      548           
=========================================
  Hits            492      492           
  Misses           56       56
Flag Coverage Δ Complexity Δ
#phpunit 89.78% <ø> (ø) 137 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a570f80...2300a34. Read the comment docs.

Copy link
Member

@DeepDiver1975 DeepDiver1975 left a comment

Choose a reason for hiding this comment

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

please squash commits - THX

+ Grey bell (#777777)
+ Black bell (#000000)

Make changes over Atom not in Illustrator

+ Changed grey to #717171

Call it "dark" instead of "black"

+ To follow naming convention from other repos
@ChrisEdS
Copy link
Contributor Author

You're welcome @DeepDiver1975

@ChrisEdS
Copy link
Contributor Author

Any updates here?

@felixheidecke Please answer the last question "afaik we are controlling icon colors with css on svgs - but maybe I'm mixing up things ..... " from @DeepDiver1975

@lordelix
Copy link
Contributor

We are indeed controlling colors inside the SVG itself. So no need to worry.

@michaelstingl
Copy link

@felixheidecke could you point to the docs or an example somewhere?

@lordelix
Copy link
Contributor

You can see here, that currently svg's have strokes and fills to determine colors.

@michaelstingl
Copy link

michaelstingl commented Jun 14, 2018

@felixheidecke what technique do you recommend to manipulate stroke and fill for a theme? CSS? JS? Could you point to an example that illustrates this?

@lordelix
Copy link
Contributor

SVG images can only be styled via CSS if you write it INTO the file itself or if you have the XML part in the DOM. Since we don't do the latter but rather reference it in an IMG tag, there is no way of outside CSS styling.

Currently, there is no way to have one SVG file and attach styling classes. The solution here is to embed icons in a webfont file and have that be styled via outside CSS. Are you guys interested in that approach?

@michaelstingl
Copy link

@felixheidecke If we don't have a magic trick to change SVG colours yet, we need to add additional SVG's. This is the case in many other places, and should be done here too. @DeepDiver1975 Please approve this PR.

@michaelstingl
Copy link

@ChrisEdS As a workaround, you'd need to ship a set of icons with every customized theme: https://github.com/owncloud/theme-enterprise/tree/master/settings/img

@ChrisEdS
Copy link
Contributor Author

@DeepDiver1975 Any chance to merge this PR?

@DeepDiver1975 DeepDiver1975 merged commit 500bc8d into master Nov 7, 2018
@DeepDiver1975 DeepDiver1975 deleted the black-theme branch November 7, 2018 22:25
@phil-davis
Copy link
Contributor

This change was not backported to notifications app stable10
IMO we have been releasing from stable10 so this will not have been in any release yet.
@PVince81 ?

@michaelstingl
Copy link

Hm. It's not transparent which apps get released from master, and which from stable10? Add a hint/checkbox to the PR-template?

@patrickjahns
Copy link
Contributor

Hm. It's not transparent which apps get released from master, and which from stable10? Add a hint/checkbox to the PR-template?

We are in the process of unifying this

@phil-davis
Copy link
Contributor

See #270 by @PVince81 which is his first attempt at finding things from stable10 that are not in master
That is why I noticed this - I was sorting out some minor diffs and saw these new files completely missing from stable10

@michaelstingl
Copy link

We are in the process of unifying this

😍

@PVince81 PVince81 mentioned this pull request Apr 8, 2019
25 tasks
@PVince81
Copy link
Contributor

please provide some test steps for QA.

it's not clear to me when these icons are supposed to appear

@ChrisEdS
Copy link
Contributor Author

In a lot of themes the white bell is useless (because of missing contrasts), this is an approach to give the user the opportunity to switch to a bell with another color.

@PVince81
Copy link
Contributor

@ChrisEdS can you test this with 10.2.0 RC1 then ? or provide detailed instructions how to test this.

who is "the user" and how can "a user" make use of this ? do you mean a theme developer ?

@ChrisEdS
Copy link
Contributor Author

A user can be anybody. But indeed he has to develop his theme. I will test this in the 10.2.0 RC1.

@PVince81
Copy link
Contributor

thanks.

in terms of personas, under "user" we usually understand "a regular ownCloud user" who has no access to the underlying system and also no admin privileges. Even an "ownCloud admin" is only able to administrate users within an ownCloud instance. The "sysadmin" role would be the one who has access to the filesystem and occ. In the case of themes, I'd also call "theme developer" whoever is developing a theme, which might get deployed by the "sysadmin".

@ChrisEdS
Copy link
Contributor Author

You're right about that. I will take that into account in the future. Thank you.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants