"Open user.css" -> "Edit style"

This commit is contained in:
abakkk 2020-03-04 14:23:49 +01:00
parent 4e3353863c
commit 0ae23a5d10
5 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
* Except for the font, you don't need to restart the extension.
* Just save this file as ~/.local/share/drawOnYourScreen/user.css and the changes will be applied for your next brushstroke.
*
* ~/.local/share/drawOnYourScreen/user.css file is automatically generated by activating "Open user.css".
* ~/.local/share/drawOnYourScreen/user.css file is automatically generated by activating "Edit style".
* Delete ~/.local/share/drawOnYourScreen/user.css file to retrieve default drawing style.
*
* line-join (no string):

View File

@ -1306,7 +1306,7 @@ const DrawingMenu = new Lang.Class({
this._addSaveDrawingSubMenuItem(this.menu);
this.menu.addAction(_("Save drawing as a SVG file"), this.area.saveAsSvg.bind(this.area), 'image-x-generic-symbolic');
this.menu.addAction(_("Open user.css"), manager.openUserStyleFile.bind(manager), 'document-page-setup-symbolic');
this.menu.addAction(_("Edit style"), manager.openUserStyleFile.bind(manager), 'document-page-setup-symbolic');
this.menu.addAction(_("Show help"), () => { this.close(); this.area.toggleHelp(); }, 'preferences-desktop-keyboard-shortcuts-symbolic');
this.updateSectionVisibility();

View File

@ -215,7 +215,7 @@ msgstr ""
msgid "Save drawing as a SVG file"
msgstr ""
msgid "Open user.css"
msgid "Edit style"
msgstr ""
msgid "Show help"
@ -324,7 +324,7 @@ msgid ""
msgstr ""
msgid ""
"<b>Default</b> drawing attributes (color palette, font, line, dash) are defined in an editable <b>css</b> file.\n"
"<b>Default</b> drawing style attributes (color palette, font, line, dash) are defined in an editable <b>css</b> file.\n"
"See <i>“%s”</i>."
msgstr ""
@ -336,7 +336,7 @@ msgstr ""
# The following words refer to SVG attributes.
# You have the choice to translate or not
# You are free to translate them or not.
#msgid "Butt"
#msgstr ""

View File

@ -71,7 +71,7 @@ var INTERNAL_KEYBINDINGS = {
'open-next-json': "Open next drawing",
'save-as-json': "Save drawing",
'save-as-svg': "Save drawing as a SVG file",
'open-user-stylesheet': "Open user.css",
'open-user-stylesheet': "Edit style",
'toggle-help': "Show help"
};
@ -299,8 +299,8 @@ const PrefsPage = new GObject.Class({
wrap: true,
xalign: 0,
use_markup: true,
label: _("<b>Default</b> drawing attributes (color palette, font, line, dash) are defined in an editable <b>css</b> file.\n" +
"See <i>“%s”</i>.").format(_("Open user.css"))
label: _("<b>Default</b> drawing style attributes (color palette, font, line, dash) are defined in an editable <b>css</b> file.\n" +
"See <i>“%s”</i>.").format(_("Edit style"))
});
styleLabel.set_halign(1);
styleLabel.get_style_context().add_class('dim-label');

View File

@ -193,8 +193,8 @@
</key>
<key type="as" name="open-user-stylesheet">
<default>["&lt;Primary&gt;o"]</default>
<summary>open user stylesheet</summary>
<description>open user stylesheet</description>
<summary>open user stylesheet to edit style</summary>
<description>open user stylesheet to edit style</description>
</key>
<key type="as" name="save-as-svg">
<default>["&lt;Primary&gt;&lt;Shift&gt;s"]</default>