Skip to content

simpler style for filetype icons - #18608

Merged
MorrisJobke merged 1 commit into
masterfrom
filetype-icons
Aug 27, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
filetype-icons

Conversation

@jancborchardt

Copy link
Copy Markdown
Contributor

Before:
capture du 2015-08-27 19-21-24
After:
capture du 2015-08-27 19-20-31

Please review @owncloud/designers @karlitschek @PVince81 @schiesbn

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Aug 27, 2015

Copy link
Copy Markdown

💣 Test FAILed. 💣
nooo432

@MorrisJobke

Copy link
Copy Markdown
Contributor

Looks really nice 👍

@enoch85

enoch85 commented Aug 27, 2015

Copy link
Copy Markdown

Wow, nice! 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

Images only and one image definition list -> merge

MorrisJobke added a commit that referenced this pull request Aug 27, 2015
simpler style for filetype icons
@MorrisJobke
MorrisJobke merged commit 5479db6 into master Aug 27, 2015
@MorrisJobke
MorrisJobke deleted the filetype-icons branch August 27, 2015 19:24
@jancborchardt

Copy link
Copy Markdown
Contributor Author

AWESOME :))))

@oparoz

oparoz commented Aug 29, 2015

Copy link
Copy Markdown
Contributor

This is what broke tests in Gallery. We still need two image types, vector and bitmap. They're very different types which require different desktop apps, etc.

@jancborchardt

Copy link
Copy Markdown
Contributor Author

@oparoz there is a redirect in the mimetypelist.js though which makes the image thumbnail be used for vectors as well.

@oparoz

oparoz commented Aug 30, 2015

Copy link
Copy Markdown
Contributor

Then that needs to be changed as well :)

@jancborchardt

Copy link
Copy Markdown
Contributor Author

We don’t really need to make the distinction in the interface though. Most bitmaps will actually get a preview generated anyway. And we should work to also get previews for the vector formats done.

@oparoz

oparoz commented Aug 30, 2015

Copy link
Copy Markdown
Contributor

I've just had a look and there are several issues :

  1. The decision as to which file type gets it own icon is arbitrary. Why a pdf icon and not a generic office document? etc. A SVG or AI fie is not like a JPG and they do require extra components to be installed to be viewed in ownCloud
  2. Font files are not images, nor are they text files
  3. What was so wrong about the old approach? It's OK to have a nicer set of icons which look like they came from the same pack, but why remove some of the types at the same time?
  4. The dist file still uses the old aliases. https://github.com/owncloud/core/blob/master/config/mimetypealiases.dist.json#L14
  5. @rullzer Why is the dist file not used when an app is requesting the mimeicon? Is there still wip for the new way to retrieve icons?

@rullzer

rullzer commented Aug 30, 2015

Copy link
Copy Markdown
Contributor

@oparoz probably because the stuff was not updated using occ.

./occ maintenance:mimetypesjs

And you are correct that the dist files need to be updated!

@oparoz

oparoz commented Aug 30, 2015

Copy link
Copy Markdown
Contributor

Got it. Actually, RTFM shows me that it's the other way around. The template is the dist file. The file edited in this PR gets overwritten.

/**

  • This file is automatically generated
  • DO NOT EDIT MANUALLY!
    *
  • You can update the list of MimeType Aliases in config/mimetypealiases.json
  • The list of files is fetched from core/img/filetypes
  • To regenerate this file run ./occ maintenance:mimetypesjs
    */

@oparoz

oparoz commented Aug 31, 2015

Copy link
Copy Markdown
Contributor

So, @jancborchardt will re-introduce a couple of icons and the dist file will be used to generate the js file.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants