Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Releases: maxludden/MaxGradient

v0.3.1

04 Mar 03:39
fbb6f08
Compare
Choose a tag to compare

0.3.1

March 3, 2024 | Updated Gradient and Color

  • Updated Gradient to work with rich.console.Console instead of the depreciated maxgradient.console.Console
  • CLI not currently usable fix underway
  • Corrected type issue found by mypy

v0.2.19 Fixed Docs and Bugfix

06 Feb 04:23
12141fe
Compare
Choose a tag to compare

v0.2.19

February 5, 2024 | Bugfix & Fixed Docs

Version Changes

  • Updated Docs
    • Changed exampes with maxgradient.console.Console to use rich.console.Console
    • Changed import maxgradient as mg statement to:
      from maxgradient import {object}

Bug Fixes

  • Fixed bug where MaxGradient would fail due to a typo.

Rewrote Gradient and Color

30 Jan 06:30
b7b8694
Compare
Choose a tag to compare

What's Changed

January 30, 2024 | Created TypeAlias GradientColors

Version Changes

  • Added GradientColors, a TypeAlias for use in maxgradient.gradient.Gradient:

    GradientColors: TypeAlias = Union[
        List[Color],
        List[ColorTriplet],
        List[RichColor],
        List[str],
        List[Tuple[int,int,int]]
    ]

    Which changes the Gradient class.:

    def __init__(
          self,
          text: Optional[str | Text] = "",
          colors: Optional[GradientColors] = None, # <--- Here
          rainbow: bool = False,
          hues: Optional[int] = None,
          style: StyleType = Style.null(),
          verbose: bool = False,
          *,
          justify: Optional[JustifyMethod] = None,
          overflow: Optional[OverflowMethod] = None,
          no_wrap: Optional[bool] = None,
          end: str = "\n",
          tab_size: Optional[int] = 4,
          spans: Optional[List[Span]] = None,
      ) -> None:

    So now you can specify colors outside of constructor:

    console = Console(record=True, width=80)
    
    colors=["red", "orange", "yellow", "green", "cyan"]
    
    gradient = Gradient(
        "Gradients are awesome!",
        colors=color,
        justify="center",
        style="bold",
    )
    console.print(
        Panel(
            gradient,
            title="Example",
            expand=False,
            border_style="bold #ffffff",
            padding=(1,4),
            width=35
        ),
        justify='center'
    )

gradients_are_awesome

Files Removed

  • maxgradient.gradient._gradient_color.py
  • maxgradient.gradient._gradient.py
  • maxgradient.console.py
  • maxgradient._rich_colors.py
  • maxgradient._X11_colors.py
  • maxgradient._hex_colors.py
  • maxgradient._rgb_colors.py
  • maxgradient._color_triplet.py
  • maxgradient._color.py

As all of their functionality has been moved into maxgradient.color.py

Note

Removed custom console and went back to using rich's console as it improved the reliablility of jumping back and forth between maxgradient and rich.

v0.2.17

16 Jan 06:40
b2282d8
Compare
Choose a tag to compare

v0.2.17

January 6, 2024 | SRC Layout and New GradientColors and ColorList

Version Changes

  • Changed layout to src
  • Ran tests and fixed conflicts
  • Added __init__.py to maxgradient directory

GradientColor

new_gradient_colors

  • Rewrote _gradient_color.GradientColor
  • Added 8 more colors bringing the the total to 18

ColorList

updated_color_list

  • Rewrote ColorList:
    • Added the missing colors from GradientColor bringing the total to 18
    • Updated examples and exported the SVG

Color

  • Fixed color.Color so that it works with the new GradientColor and ColorList classes

Dependancy Updates

  • Updated rich to v10.6.0
  • Updated pydantic to v1.9.0
  • Updated pytest to v6.2.5

v0.2.16 | Added `themes.py` and fixed gradient

03 Jan 17:00
Compare
Choose a tag to compare

v0.2.16

Added themes.py (and fixed MaxGradient.gradient.Gradient)

Version Changes

  • Added themes.py to mirror rich's themes.py
  • Bug fixes for gradient.py and console.py

Dependancy Updates

  • Removed snoop from modules

Updated dependancies

19 Dec 04:18
Compare
Choose a tag to compare
  • Updated and locked dependancies to latest versions
  • Added ruff configuration file

Pydantic Types

07 Dec 05:43
Compare
Choose a tag to compare

Attempted to fix PydanticSchemaGenerationError

Added Tests and removed Gradient Attributes

28 Nov 10:32
Compare
Choose a tag to compare

v0.2.11 | November 28, 2023 | Added Tests and removed Gradient Attributes

  • Removed color_sample and invert from gradient attributes
  • Added tests for console, color, and gradient

v0.2.10 | Added Dates

25 Nov 10:14
Compare
Choose a tag to compare

v3.2.10 | November 25, 2023 | Added Dates

  • Updated changlog to have dates
  • added logo and favicon to changelog

v0.2.9 | November 25, 2023 |Updated Banner

  • Updated MaxGradient Logo:

MaxGradient Logo

- and Favicon:

MaxGradient Favicon

- Updated banner to include new logo as http rather than referencing the SVG file locally.

v0.2.8 | November 25, 2023 | Fixed cli.py

  • Fixed cli.py so that it works with the new gradient method
  • Removed logging

v2.0.7 | Bug Fixes after Mypy

23 Nov 15:58
Compare
Choose a tag to compare

Updated all files

  • to working Mypy
  • fixed any changes that were breaking anything