maoschanz / notes-extension-gnome

A GNOME Shell extension providing customizable sticky notes
GNU General Public License v3.0
80 stars 40 forks source link

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

Open jvpessoa10 opened 4 years ago

jvpessoa10 commented 4 years ago

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.

JPnux commented 2 years ago

same wish !

floe commented 2 years ago

Seconded.

tavatir commented 2 years ago

My workaround:

--- notes@maestroschan.fr/noteBox.js    2021-11-20 17:00:52.000000000 +0300
+++ notes@maestroschan.fr_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 () {