Coder Social home page Coder Social logo

Comments (14)

mdupierreux avatar mdupierreux commented on June 10, 2024 1

Ok, so for breaks and services we shouldn't have the bookmark option ? From what I see, the bookmark option is visible because the breaks for Android Makers have the service type. If the type was correct, the option wouldn't be visible.

if (!session.isBreak()) {
            Bookmark(
                isBookmarked = isBookmarked,
                onBookmarkChange = { shouldAdd ->
                    if (!isLoggedIn) {
                        showDialog = true
                        return@Bookmark
                    }
                    if (shouldAdd) {
                        addBookmark(session.id)
                    } else {
                        removeBookmark(session.id)
                    }
                }
            )
        }

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024 1

You can check this pull request for the code I wrote : #1314

from confetti.

joreilly avatar joreilly commented on June 10, 2024 1

That's merged now

from confetti.

joreilly avatar joreilly commented on June 10, 2024

ah, thanks....that does look pretty ugly all right :)

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024

If service sessions are white (on light mode) what would be the correct color in dark mode ?

from confetti.

joreilly avatar joreilly commented on June 10, 2024

I"m not sure tbh what best colour would be to use there (am definitely not a designer :) ) ....maybe one of standard ones with some change in alpha or perhaps tonalElevation as we do with ConfettiHeaderAndroid for example

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024

Something like this for example ?

from confetti.

joreilly avatar joreilly commented on June 10, 2024

Yeah, that definitely looks better....also btw just noticed we show bookmark option for those which I guess we shouldn't!

from confetti.

BoD avatar BoD commented on June 10, 2024

Sorry, I'm also definitely not a designer 😅 - but on the proposed screenshots above, it looks like the break/service sessions are actually highlighted and have an importance higher than the other sessions whereas, arguably, it's the opposite 😅

They should probably have the same color as the background instead.

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024

Ok 😄, I'm going to try to find a dimmer color (background on dark theme gives me a full black list 😅 )

from confetti.

joreilly avatar joreilly commented on June 10, 2024

I'm not super familiar with options here but wondering what tonalElevation might add

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024

I will look into it 👍

from confetti.

mdupierreux avatar mdupierreux commented on June 10, 2024

Here's with a tonalElevation of 8dp for sessions and 0dp for services :

from confetti.

joreilly avatar joreilly commented on June 10, 2024

That definitely looks better. @BoD what you think?

from confetti.

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.