Giter Club home page Giter Club logo

Comments (9)

dockimbel avatar dockimbel commented on July 23, 2024 2

Yellow image here using the latest commit from master:

image

from red.

dockimbel avatar dockimbel commented on July 23, 2024 1

I think we can improve VID so that the image gets colored using the provided color.

from red.

qtxie avatar qtxie commented on July 23, 2024

The rendering order of the facets is as follows:

color -> image -> text

The white image covers the background color in this issue, that why you cannot see the color.

from red.

greggirwin avatar greggirwin commented on July 23, 2024

view [img: image yellow with [image: #(none)] button [img/image: none]]

If you wanted no image to begin with, should with work here? Clearing the image does correctly reveal the color.

from red.

greggirwin avatar greggirwin commented on July 23, 2024

Hmmm. I just pulled and rebuilt, and I still get a white image. Or are you saying users need to patch the style to get this behavior, as it doesn't do that by default?

from red.

dockimbel avatar dockimbel commented on July 23, 2024

Are you sure? Using the latest View build, I get a yellow result.

from red.

greggirwin avatar greggirwin commented on July 23, 2024

Just DL'd the static build and still get the white result by default. If I patch the style, as you have above, it works. I just didn't know if the new behavior should be by default.

>> about
Red 0.6.5 for Windows built 5-Apr-2024/8:22:23-06:00  commit #9516a4b
>> system/view/vid/styles/image
== [
    default-actor: on-down 
    template: [type: 'base size: 100x100] 
    init: [unless image [image: make image! size]]
]

is the standard image style in the static build as well.

from red.

dockimbel avatar dockimbel commented on July 23, 2024

It seems I am the one who got it wrong. I kept using the code provided under "Expected behavior" as code for reproducing the issue...

from red.

luce80 avatar luce80 commented on July 23, 2024

This is better then my previous suggestion:

	system/view/VID/styles/image: [
		default-actor: on-down
		template: [type: 'base size: 100x100]
		init: [unless image [image: make image! reduce [size any [color white]]]]
	]

from red.

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.