Git Product home page Git Product logo

eft-gdscript's Introduction

Easily Formattable Theme - EFT

EFT-gdscript is a godot asset that allows developers to easily create themes for their gui applications

You can download EFT by cloning this repository, or from the godot asset store!

Why use EFT?

EFT allows the developers, and the users to create themes very easily for GUI applications that have EFT support. It is super easy to implement EFT into your project, and you can customize tons of aspects of your application, such as Colors, Fonts, Images, etc. There is also EFT for Python, and more in the future!

How do I use EFT?

Here's how to get started with using EFT!

Creating a theme

Creating a theme is simple! You just need to supply the name of the theme, and then any fields that you want! Not all types from EFT-py are currently supported, but the most important are. The ones you can use currently include:

  • Color
  • Int
  • String
  • Image
  • Font

You can also add your own types using register_type()

- Theme Name

Primary: #fc7b2b : Color
Background: 255,255,255 : Color

FontSize: 16 : Int
Title: My Title : String

Implementing themes

It's super easy to implement themes into your application, with just two lines of code you can grab a color, or any other property from the file!

my_theme = EFTTheme("user://my_theme.eft")

my_theme.get_property("Primary") # Returns a Color from the field "Primary"!

Other

Contributing

Contributions are highly appreciated, feel free to open an issue, or open a Pull Request :)

Contact

@possiblepanda on discord

eft-gdscript's People

Contributors

possiblepanda avatar

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.