GithubHelp home page GithubHelp logo

tkinterep / ttkstyles Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 117 KB

Reimagination of the ttkthemes concept for use with fonts and different theme parsers

License: GNU General Public License v3.0

Python 100.00%

ttkstyles's Introduction

ttkstyles

Do you like ttkthemes, but don't quite enjoy having all sorts of themes installed when you only need just the one? Would you like to be able to easily use different fonts in your application without having to load them yourself?

Well, now you can! Or at least, almost. This repository is a WIP to replace ttkthemes. It allows you to define the style of your application in a CSS-like format. Themes can be pulled from many places, such as GitHub. This separates the themes from the repository, allowing people to make popular themes while the loading mechanism is maintained separately.

How to use

For now, just have a look at example.py and example.ttkstyle to find out how to use this first version of the project. More detailed documentation is not high on the priority list while the outline of the project is still changing.

License

ttkstyles: Easy styling for your Python Tkinter application 
Copyright (c) 2017-2021 RedFantom
Copyright (c) 2021 rdbende

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.``

ttkstyles's People

Contributors

rdbende avatar redfantom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ttkstyles's Issues

Making this ready for publication

So, I thought I'd add a TODO list of what I'd still like to do with this package before I think it's ready for publication. Feel free to add your own points, @rdbende , so we can discuss them here!

TODO List

  • Font support
    • Integration with tkextrafont
    • RedFantom/extrafont: Travis-CI & AppVeyor building
    • Publication of tkextrafont to PyPI from that repository
  • SVG Theme Support with tksvg/Tk 8.7
    • Implement CI building for TkinterEP/python-tksvg
    • Create at least one scalable SVG theme for hi-res displays
    • Publication of tksvg to PyPI from that repository
  • Better logging configurability
    • TBD
  • Python or CSS theme support
    Support for defining themes in Python, CSS or some other additional method. Could work in conjunction with the GTK theme parser.
  • Support for loading a PNG theme as a GIF theme
    Investigate the possibility of loading PNG images into PhotoImages and dropping the alpha channel from them on-the-fly to improve application performance while removing the need for separate GIF-based themes.
  • Put everything under unit tests

Themes ready at release
These are all themes I'd like to have in a separate repository. Whether they should also be PyPI packages is TBD.

  • Yaru: Needs tristate images, Switch images + TkinterEP/ttkthemes#44
  • Adapta: Needs tristate images, Switch images + TkinterEP/ttkthemes#44
  • Azure
  • Equilux
  • Yaru-dark?
  • Adapta-variants? (Make this an automatic process? There's lots of themes based off of Adapta)

Stretch Goals

Suspended Features

  • GTK-theme support
    Either take the GTK theme parser from thettkstyles/gtk directory where it currently resides and make it suitable for parsing arbitrary GTK themes or drop the idea completely

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.