Skip to content

Commit 5cd9636

Browse files
authored
🔀 Merge pull request #69 from davep/move-change-theme
Use the textual-enhanced ChangeTheme command
2 parents e10687b + dff7910 commit 5cd9636

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

src/peplum/app/commands/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
)
1818
from .finding import FindPEP
1919
from .main import (
20-
ChangeTheme,
2120
EditNotes,
2221
Escape,
2322
RedownloadPEPs,
@@ -35,7 +34,6 @@
3534
##############################################################################
3635
# Exports.
3736
__all__ = [
38-
"ChangeTheme",
3937
"EditNotes",
4038
"Escape",
4139
"FindPEP",

src/peplum/app/commands/main.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
from textual_enhanced.commands import Command
66

77

8-
##############################################################################
9-
class ChangeTheme(Command):
10-
"""Change the application's theme"""
11-
12-
BINDING_KEY = "f9"
13-
14-
158
##############################################################################
169
class EditNotes(Command):
1710
"""Edit the highlighted PEP's notes"""

src/peplum/app/providers/main.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
##############################################################################
44
# Textual enhanced imports.
5-
from textual_enhanced.commands import CommandHits, CommandsProvider, Help, Quit
5+
from textual_enhanced.commands import (
6+
ChangeTheme,
7+
CommandHits,
8+
CommandsProvider,
9+
Help,
10+
Quit,
11+
)
612

713
##############################################################################
814
# Local imports.
915
from ..commands import (
10-
ChangeTheme,
1116
EditNotes,
1217
Escape,
1318
FindPEP,

src/peplum/app/screens/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
##############################################################################
1919
# Textual enhanced imports.
20-
from textual_enhanced.commands import Command, Help, Quit
20+
from textual_enhanced.commands import ChangeTheme, Command, Help, Quit
2121
from textual_enhanced.dialogs import ModalInput
2222
from textual_enhanced.screen import EnhancedScreen
2323

@@ -26,7 +26,6 @@
2626
from ... import __version__
2727
from ...peps import API
2828
from ..commands import (
29-
ChangeTheme,
3029
EditNotes,
3130
Escape,
3231
FindPEP,

0 commit comments

Comments
 (0)