notes-extension-gnome icon indicating copy to clipboard operation
notes-extension-gnome copied to clipboard

Put note text in top of the container instead of in middle

Open jvpessoa10 opened this issue 3 years ago • 3 comments

Currently, the text starts at the middle of the note. As an user, I would suggest to change it to the top. And when the text hits the end of the note, the container would start scrolling with it.

jvpessoa10 avatar Sep 01 '20 23:09 jvpessoa10

same wish !

JPnux avatar Dec 31 '21 10:12 JPnux

Seconded.

floe avatar Jan 10 '22 21:01 floe

My workaround:

--- [email protected]/noteBox.js	2021-11-20 17:00:52.000000000 +0300
+++ [email protected]_updated/noteBox.js	2022-05-10 11:32:36.254579757 +0300
@@ -91,6 +91,7 @@
 			track_hover: true,
 			x_expand: true,
 			style_class: 'notesTextField',
+			y_align: Clutter.ActorAlign.START,
 		});
 		let clutterText = this.noteEntry.get_clutter_text();
 		clutterText.set_single_line_mode(false);
@@ -346,7 +348,7 @@
 	}
 
 	_applyNoteStyle () {
-		let temp = 'background-color: rgba(' + this.customColor + ', 0.8);';
+		let temp = 'background-color: rgba(' + this.customColor + ', 0);';
 		if(this._fontColor != '') {
 			temp += 'color: ' + this._fontColor + ';';
 		}
@@ -354,6 +356,7 @@
 			temp += 'font-size: ' + this._fontSize + 'px;';
 		}
 		this.noteEntry.style = temp;
+		this._entryBox.style = 'background-color: rgba(' + this.customColor + ', 0.8);';
 	}
 
 	_getKeyFocus () {

tavatir avatar May 10 '22 08:05 tavatir