Git Product home page Git Product logo

Comments (10)

timpulver avatar timpulver commented on May 18, 2024 10

In context having a cropped screenshot will often look better because the edges of the code area are aligned with the surrounding content.

without_sha_zeichenflache 1

withsha_zeichenflache 1

Also with Material Design / Paper using shadows on an image might give the impression of it being interactive.

from polacode.

timpulver avatar timpulver commented on May 18, 2024 6

Would be great to have two modes:

  • With shadow: draws a shadow (party transparent) around the code-area, because of drawing the shadow with transparency the image will look good on every background where it is displayed
  • Without shadow: Sides are cropped (code area maximized), transparent background, so the corners are left out and the image works on every background

The version right now won’t look good in many places because of the opaque background

from polacode.

octref avatar octref commented on May 18, 2024 2

With #8 (comment) now I only want to add an option to toggle backdrop. The backdrop will be shown in preview but the export image won't have it.

from polacode.

gugadev avatar gugadev commented on May 18, 2024 1

@octref I think the best way is to export to a transparent image with shadow, just like mac does.

from polacode.

johnpapa avatar johnpapa commented on May 18, 2024 1

One use case for no backdrop or transparent bground is for slides (powerpoint, keynote, google slides, etc)

from polacode.

octref avatar octref commented on May 18, 2024

No backdrop or transparent backdrop looks pretty ugly to me.

GitHub

code
code

Twitter

image
image

Provide example where they might be looking good.

from polacode.

lunelson avatar lunelson commented on May 18, 2024

The point of having a transparent background is to be able to place it over any underlying color or graphics; obviously, over black or very dark colors it won't show up—but the idea here is just to have similar kinds of options as one has with carbon.now.sh: for example, you can get a transparent background with Carbon by selecting the "image" option but uploading no image;

The following was captured with the normal macOS window-screenshot functionality: the shadow is transparent, and the entire shadow is captured. This leaves you the most options, in terms of placing the image.

image

from polacode.

StanleySathler avatar StanleySathler commented on May 18, 2024

@octref where are you planning to add this option? Maybe a checkbox/custom toggle component just above the "export" button?

from polacode.

pmolaro avatar pmolaro commented on May 18, 2024

PLUS 1 for this feature

from polacode.

tobi-or-not-tobi avatar tobi-or-not-tobi commented on May 18, 2024

@johnpapa I've done a small local fix to have transparent background, no backdrop or basically any change you like to make for the exact same reason as you bring up. See #55 (comment).

Personally I don't mind the dropshadow so much (although its opinionated), but the background color (in dark mode) and the cut off is just not great.

from polacode.

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.