"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. * 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. * 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. * Delete ~/.local/share/drawOnYourScreen/user.css file to retrieve default drawing style.
* *
* line-join (no string): * line-join (no string):

View File

@ -1306,7 +1306,7 @@ const DrawingMenu = new Lang.Class({
this._addSaveDrawingSubMenuItem(this.menu); 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(_("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.menu.addAction(_("Show help"), () => { this.close(); this.area.toggleHelp(); }, 'preferences-desktop-keyboard-shortcuts-symbolic');
this.updateSectionVisibility(); this.updateSectionVisibility();

View File

@ -215,7 +215,7 @@ msgstr ""
msgid "Save drawing as a SVG file" msgid "Save drawing as a SVG file"
msgstr "" msgstr ""
msgid "Open user.css" msgid "Edit style"
msgstr "" msgstr ""
msgid "Show help" msgid "Show help"
@ -324,7 +324,7 @@ msgid ""
msgstr "" msgstr ""
msgid "" 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>." "See <i>“%s”</i>."
msgstr "" msgstr ""
@ -336,7 +336,7 @@ msgstr ""
# The following words refer to SVG attributes. # 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" #msgid "Butt"
#msgstr "" #msgstr ""

View File

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

View File

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