Giter Club home page Giter Club logo

Comments (4)

luckman212 avatar luckman212 commented on June 3, 2024 1

Updated to 1.10.5 ... LGTM šŸš€

Light

Dark

from pairdrop.

luckman212 avatar luckman212 commented on June 3, 2024

Not sure if it's related to this error in my console

image

found this: iamshaunjp/pwa-tutorial#1

from pairdrop.

luckman212 avatar luckman212 commented on June 3, 2024

Yes the browser detection is neat but seems overly complex and a bit fiddly. I don't mind the high contrast icon at all. I suppose if it really bothers people it could be made into some kind of configurable environment variable?

-e FAVICON_URL="./whatever.ico"

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on June 3, 2024

The following comments were deleted by GitHub (via hubot) as part of mistakenly marking this account as spam on 17th February 2024. The correct thread order and the creation date is unclear. I decided to manually restore them anyway in order to complete the information this issue holds even though the restored information might be outdated:

Comment by @schlagmichdoch:

Not related to the error.

I've changed all icons to be consistent on all platforms:
https://github.com/schlagmichdoch/PairDrop/blob/master/public/images/android-chrome-512x512.png

I really like the clean look of the simple white favicon as GitHub does it:
Firefox dark mode:
![image](https://github.com/schlagmichdoch/PairDrop/assets/52242352/cba43814-976e-41bb-996f-b3d7e5381848

Apparently, I have missed though, that some people are still using light mode on some browsers with light navbars šŸ™ˆ

Sorry for the inconvenience!

We have two possibilities now:

  1. Two favicons: One for light mode, one for dark mode
  2. One favicon that has high contrast on all backgrounds

Two favicons

This is done by GitHub: Normally the favicon is black. The page then detects whether the browser prefers dark mode and uses a white favicon instead. You can check this by opening github.com and changing the browser settings.
This seems to work on Firefox (and probably Safari) but does not show the correct icon on Chromium and also if the header bar is always dark.

Firefox dark mode:
image

Firefox light mode:
image

One favicon with high contrast

I'd prefer this. I would then use the white icon on blue background that is already used for everything else:
Chromium light mode:
image

Chromium dark mode:
image

What do you think?

Comment by @schlagmichdoch:

Iā€˜d like to be consistent between self hosted versions and pairdrop.net.

So I will change the icon to the blue icon for the next version v1.10.4 in the next days. Thanks for your input!

from pairdrop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.