Skip to content

Add style property to barfi.st_barfi#26

Open
GsLogiMaker wants to merge 2 commits intokrish-adi:mainfrom
GsLogiMaker:feature/add-style-parameter
Open

Add style property to barfi.st_barfi#26
GsLogiMaker wants to merge 2 commits intokrish-adi:mainfrom
GsLogiMaker:feature/add-style-parameter

Conversation

@GsLogiMaker
Copy link

@GsLogiMaker GsLogiMaker commented Sep 21, 2023

This pull request implements the custom styling that I requested in #24.

Below is an example of whats possible with this feature:

Source

node = bf.Block("Block")
node.add_input("In")
node.add_output("Out")
node.add_option("Data", "input")

bf.st_barfi(
	[node],
	style="""
	.button-menu {
		visibility: hidden;
	}
	.node {
		visibility: hidden;
	}
	.node > .__title {
		visibility: visible;
	}
	.node > .__content {
            background: red;
		border-radius: 0px 0px 32px 32px;
		visibility: visible;
        }
	.node-editor > .background {
		background: green;
	}
	""",
)

Result

Screenshot from 2023-09-21 14-09-38

And of course you could make it look really good if you tried.

@GsLogiMaker GsLogiMaker marked this pull request as ready for review September 21, 2023 19:11
@krish-adi
Copy link
Owner

krish-adi commented Sep 22, 2023

Thanks @GsLogiMaker ! I'll test it out this weekend and get back...

This file was included accidentally.
@equidna
Copy link

equidna commented Apr 2, 2024

Is this going to be merged?

@krish-adi
Copy link
Owner

@equidna and @GsLogiMaker there are major changes ocurring with the new release. Please check the pinned issue for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants