Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.4 #71

Merged
merged 8 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading