move eraser/svg note

Remove the note about eraser and svg export from the prefs and add it to readme "Tips and tricks".
This commit is contained in:
abakkk 2020-09-02 16:37:58 +02:00
parent c1689cac75
commit 2195aed3c0
3 changed files with 6 additions and 22 deletions

View File

@ -26,7 +26,7 @@ Then save your beautiful work by taking a screenshot.
6. `Super + Alt + D` to test
7. [https://framagit.org/abakkk/DrawOnYourScreen/issues](https://framagit.org/abakkk/DrawOnYourScreen/issues) to say it doesn't work
## Details
## Tips and tricks
* Draw arrows:
@ -44,6 +44,10 @@ Then save your beautiful work by taking a screenshot.
Add your images (jpeg, png, svg) to `~/.local/share/drawOnYourScreen/images/`.
* Eraser and SVG:
There is no eraser in SVG so when you export elements made with the eraser to a SVG file, they are colored with the background color, transparent if it is disabled. See `“Add a drawing background”` or edit the SVG file afterwards.
* Screenshot Tool extension:
[Screenshot Tool](https://extensions.gnome.org/extension/1112/screenshot-tool/) is a convenient extension to “create, copy, store and upload screenshots”. In order to select a screenshoot area with your pointer while keeping the drawing in place, you need first to tell DrawOnYourScreen to ungrab the pointer (`Ctrl + Super + Alt + D`).

View File

@ -404,12 +404,6 @@ msgstr ""
msgid "Show help"
msgstr ""
msgid ""
"When you save elements made with <b>eraser</b> in a <b>SVG</b> file, "
"they are colored with background color, transparent if it is disabled.\n"
"See <i>“%s”</i> or edit the SVG file afterwards."
msgstr ""
msgid "Screenshot"
msgstr ""

View File

@ -437,7 +437,7 @@ const PrefsPage = new GObject.Class({
let internalFrame = new Frame({ label: _("Internal"), desc: _("In drawing mode") });
box.add(internalFrame);
listBox = new Gtk.ListBox({ selection_mode: 0, hexpand: true, margin_top: MARGIN });
listBox = new Gtk.ListBox({ selection_mode: 0, hexpand: true, margin_top: MARGIN, margin_bottom: MARGIN / 2 });
listBox.get_style_context().add_class('background');
internalFrame.add(listBox);
@ -466,20 +466,6 @@ const PrefsPage = new GObject.Class({
listBox.add(internalKeybindingsWidget);
});
let noteBox = new Gtk.Box({ margin: MARGIN });
let noteLabel = new Gtk.Label({
wrap: true,
xalign: 0,
use_markup: true,
label: _("When you save elements made with <b>eraser</b> in a <b>SVG</b> file, " +
"they are colored with background color, transparent if it is disabled.\n" +
"See <i>“%s”</i> or edit the SVG file afterwards.").format(_("Add a drawing background"))
});
noteLabel.set_halign(1);
noteLabel.get_style_context().add_class('dim-label');
noteBox.pack_start(noteLabel, true, true, 4);
listBox.add(noteBox);
listBox.get_children().forEach(row => row.set_activatable(false));
}
});