mirror of
https://github.com/Textualize/trogon.git
synced 2023-05-22 11:05:13 +03:00
tweaks, fix verbosity
This commit is contained in:
@@ -162,7 +162,11 @@ class UserCommandData:
|
||||
else:
|
||||
# Get the value of the counting option
|
||||
count = next(itertools.chain.from_iterable(value_data), 1)
|
||||
count = int(count)
|
||||
try:
|
||||
count = int(count)
|
||||
except ValueError:
|
||||
# TODO: Not sure if this is the right thing to do
|
||||
count = 1
|
||||
if option_name.startswith("--"):
|
||||
args.extend([option_name] * count)
|
||||
else:
|
||||
|
||||
@@ -209,7 +209,7 @@ class CommandBuilder(Screen):
|
||||
|
||||
|
||||
class Trogon(App):
|
||||
CSS_PATH = Path(__file__).parent / "textual_click.scss"
|
||||
CSS_PATH = Path(__file__).parent / "trogon.scss"
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
@@ -99,7 +99,7 @@ CommandTree {
|
||||
|
||||
|
||||
CommandTree:focus {
|
||||
border: tall $secondary;
|
||||
border: tall $success;
|
||||
}
|
||||
|
||||
CommandTree > .tree--cursor {
|
||||
@@ -177,7 +177,7 @@ CommandInfo {
|
||||
}
|
||||
|
||||
.command-info-header-text {
|
||||
padding: 1 2 0 2;
|
||||
padding: 1 1 0 2;
|
||||
}
|
||||
|
||||
$command-info-header-bg: $primary-darken-1;
|
||||
|
||||
Reference in New Issue
Block a user