You are not logged in.


in a Mousepad document the text is hard up against the left edge
Is there a way to add some padding?
Last edited by RaySurf (2024-12-17 13:25:44)
Offline


Which version of mousepad?
Try:
.mousepad .sourceview {padding-left: 10px;}...in ~/.config/gtk-3.0/gtk.css.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Which version of mousepad?
Try:
.mousepad .sourceview {padding-left: 10px;}...in ~/.config/gtk-3.0/gtk.css.
great thanks... that did someting,
it put some padding inside the row number side bar, but it still helps, thanks
Mousepad 0.5.10 (on debian bookworm)
oh, just realised the latest release is 0.6.3 released (2024/10/21 12:18)
edit: actually the padding is between the row numbers and the text, it just looked like it was part of the numbers bar because of my colour theme
Last edited by RaySurf (2024-12-15 21:46:12)
Offline


You can also specify a background colour if you want to change it to be the same colour as the sourceview window:
.mousepad .sourceview {padding-left: 10px; background-color: red}...change "red" to whatever colour name or #rrggbb matches.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


I am also interested in a small adjustment in mousepad. Is it possible to insert a space between the line numbers and the actual text?
3-4 px would be enough, then it would be easier to place the cursor in front of the beginning of a line.
Thanks in advance and regards
Offline


I am also interested in a small adjustment in mousepad. Is it possible to insert a space between the line numbers and the actual text?
3-4 px would be enough, then it would be easier to place the cursor in front of the beginning of a line.
Thanks in advance and regards
Does the above work for this use case? It puts padding between the line numbers and the text.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


You can also specify a background colour if you want to change it to be the same colour as the sourceview window:
.mousepad .sourceview {padding-left: 10px; background-color: red}...change "red" to whatever colour name or #rrggbb matches.
it looks like any file that is longer (number of lines) than what will fit inside the open window, will show the margin padding with just black background color
if the file number of lines is less than what fits in the window height, then the padding background color works fine
Last edited by RaySurf (2024-12-17 12:38:59)
Offline


Any way to remove the black color for files with large number of rows (lines)?
Offline


Are you referring to the background colour of the line numbers column? If so,
.sourceview border {background-color: red;}Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


The black strip is just to the right of the line numbers column.
Offline


If you've used the tweak above, then I don't see a way to do that. If something else, can you post a screenshot?
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Offline


That's odd.
What version of mousepad are you running and can you post back the contents of your ~/.config/gtk-3.0/gtk.css? I can't replicate this on the latest version.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


~/.config/gtk-3.0/gtk.css
@import 'colors.css';
.mousepad .sourceview {padding-left: 10px;}
.mousepad .sourceview {padding-left: 10px; background-color: #FFFFFF}also, mousepad 0.6.1
Offline


What "Color Scheme" are you using and if you change color schemes does the problem persist?
Can you try with the first line of that snippet removed?
And if still nothing, try the following:
.mousepad .sourceview {padding-left: 10px;}
.mousepad .sourceview {padding-left: 10px; background-color: rgba(255,255,255,0.0);}...or:
.mousepad .sourceview {padding-left: 10px;}
.mousepad .sourceview {padding-left: 10px; background-color: rgba(255,255,255,0.0);}Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Not using any color scheme. Changed scheme to classic but problem persists.
Tried your suggestions for changes to ~/.config/gtk-3.0/gtk.css but problem persists.
Offline


Hmmm. I rebuilt 0.6.1 from source and can replicate the issue. I'm not sure what commit fixed it, but it no longer exists in 0.6.3.
Edit: Now that I've rebuilt 0,6,3, I can see the problem. This is odd.
Try this:
.mousepad .sourceview {padding: 10px}
.mousepad .sourceview text {background-color: rgba(255,255,255,.99)}Last edited by ToZ (2024-12-26 02:57:15)
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


That worked ToZ. Thanks for your effort!
Offline
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 624.4 KiB (Peak: 657.24 KiB) ]