Skip to content

Commit

Permalink
Merge pull request #71 from kraanzu/develop
Browse files Browse the repository at this point in the history
v3.0.4
  • Loading branch information
kraanzu committed Feb 5, 2024
2 parents cfaf605 + 166ab7d commit 5386a65
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 85 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 3.0.4

## Fixed
- `ctrl+w` when pressed on first letter crashes smassh
- Clicking on setting option won't change setting (https://github.com/kraanzu/smassh/issues/67)

## Added
- `TokyoNight` theme
- 'EveryForest Dark' theme

## 3.0.3

## Fixed
Expand Down
184 changes: 100 additions & 84 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "smassh"
version = "3.0.3"
version = "3.0.4"
description = "A TUI based typing application"
maintainers = ["kraanzu <kraanzu@gmail.com>"]
license = "GPL v3"
Expand Down
10 changes: 10 additions & 0 deletions smassh/ui/css/themes/everforest_dark.tcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$bg-color: #272e33;
$main-color: #a7c080;
$caret-color: #d699b6;
$sub-color: #7A8478;
$sub-alt-color: #2e383c;
$text-color: #d3c6aa;
$error-color: #e67e80;
$error-extra-color: #e69875;
$colorful-error-color: #e67e80;
$colorful-error-extra-color: #e69875;
10 changes: 10 additions & 0 deletions smassh/ui/css/themes/tokyonight.tcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$bg-color: #1a1b26;
$main-color: #769dee;
$caret-color: #e0af68;
$sub-color: #565f89;
$sub-alt-color: #24283b;
$text-color: #c0caf5;
$error-color: #f7768e;
$error-extra-color: #ff9e64;
$colorful-error-color: #f7768e;
$colorful-error-extra-color: #ff9e64;
8 changes: 8 additions & 0 deletions smassh/ui/widgets/settings/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ def __init__(self, value: str) -> None:
super().__init__()
self.value = value

def on_click(self) -> None:
parent = self.parent
if isinstance(parent, Option):
self_index = parent.options.index(self)
parent._value = self_index
parent.update_highlight()
parent.save()

def render(self) -> RenderableType:
return self.value

Expand Down

0 comments on commit 5386a65

Please sign in to comment.