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

feat: Redesigned textbox input & buttons #289

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
32 changes: 31 additions & 1 deletion internal/messages/composer/composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var viewCSS = cssutil.Applier("composer-view", `
color: @accent_color;
}
.composer-right-actions {
margin: 4px 0.65em 4px 0;
margin: 0 11px 0 4px;
}
.composer-right-actions > *:not(:first-child) {
margin-left: 4px;
Expand All @@ -172,6 +172,36 @@ var viewCSS = cssutil.Applier("composer-view", `
padding: 12px 2px;
color: alpha(@theme_fg_color, 0.65);
}
.composer-send,
.composer-right-actions .composer-action {
background: @accent_bg_color;
border-radius: 99px;
}
.composer-right-actions button,
.composer-left-actions button {
min-height: 24px;
}
.composer-placeholder {
padding-top: 6px;
padding-left:7px;
}
.composer-placeholder-overlay {
margin-top: 5px;
margin-bottom: 5px;
background-color: alpha(@view_fg_color, 0.1);
border-radius: 17px;
}
.composer-view.horizontal {
margin-bottom: 2px;
margin-top: 2px;
}
.composer-send:hover,
.composer-right-actions .composer-action:hover {
background: @accent_color;
}
.composer-send:focus,
.composer-right-actions .composer-action:focus {
background: cross-fade(@accent_color 85%, @dark_5 15%);
.composer-msg-length {
font-size: 0.8em;
margin: 0.25em 0.5em;
Expand Down
2 changes: 1 addition & 1 deletion internal/messages/composer/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var inputCSS = cssutil.Applier("composer-input", `
background-color: inherit;
}
.composer-input {
padding: 12px 2px;
padding: 7px 2px 7px 7px;
margin-top: 0px;
}
.composer-input .autocomplete-row label {
Expand Down
Loading