From 35a96bde514a8897f6f0fcc41c5833bf63df2e2a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:29:01 +0200 Subject: Adding upstream version 1.0.2. Signed-off-by: Daniel Baumann --- share/ui/Adwaita-dark.css | 62 ++ share/ui/Adwaita.css | 63 ++ share/ui/CMakeLists.txt | 4 + share/ui/dialog-css.glade | 134 ++++ share/ui/dialog-filter-editor.glade | 381 ++++++++++ share/ui/dialog-livepatheffect-add.glade | 450 +++++++++++ share/ui/dialog-livepatheffect-effect.glade | 270 +++++++ share/ui/dialog-trace.glade | 1099 +++++++++++++++++++++++++++ share/ui/inkscape-application.glade | 31 + share/ui/menus.xml | 326 ++++++++ share/ui/style.css | 447 +++++++++++ share/ui/toolbar-commands.ui | 42 + share/ui/toolbar-tool.ui | 49 ++ share/ui/toolbox.xml | 13 + share/ui/units.xml | 101 +++ share/ui/win32.css | 146 ++++ 16 files changed, 3618 insertions(+) create mode 100644 share/ui/Adwaita-dark.css create mode 100644 share/ui/Adwaita.css create mode 100644 share/ui/CMakeLists.txt create mode 100644 share/ui/dialog-css.glade create mode 100644 share/ui/dialog-filter-editor.glade create mode 100644 share/ui/dialog-livepatheffect-add.glade create mode 100644 share/ui/dialog-livepatheffect-effect.glade create mode 100644 share/ui/dialog-trace.glade create mode 100644 share/ui/inkscape-application.glade create mode 100644 share/ui/menus.xml create mode 100644 share/ui/style.css create mode 100644 share/ui/toolbar-commands.ui create mode 100644 share/ui/toolbar-tool.ui create mode 100644 share/ui/toolbox.xml create mode 100644 share/ui/units.xml create mode 100644 share/ui/win32.css (limited to 'share/ui') diff --git a/share/ui/Adwaita-dark.css b/share/ui/Adwaita-dark.css new file mode 100644 index 0000000..db89ba2 --- /dev/null +++ b/share/ui/Adwaita-dark.css @@ -0,0 +1,62 @@ +/* ADWAITA DARK SPECIFIC STYLE */ + +/* + * Keep as small as possible + */ + +spinbutton { + padding: 0; + outline-style: none; +} + +spinbutton entry { + padding-left: 2px; + padding-right: 0; +} + +spinbutton undershoot { + outline-style: none; +} + +spinbutton entry { + padding-left: 2px; + padding-right: 0; +} + +spinbutton undershoot { + outline-style: none; +} + +.inkswitch slider { + min-width: 18px; + min-height: 18px; +} + +.inkswitch image { + color: transparent; + background-color: transparent; + background-image: image(transparent); + -gtk-icon-style:symbolic; +} + +.inkswitch { + margin: 2px; + padding: 0; + font-size: 8px; +} + +/* Reduce width of +/- buttons. */ +.up, +.down { + padding-left: 0; + padding-right: 0; +} + +#monoStrokeWidth, +#fillEmptySpace, +#SelectStatus, +#CoordinateStatusX, +#CoordinateStatusY, +#DesktopMainTable spinbutton{ + font-family: sans-serif; +} \ No newline at end of file diff --git a/share/ui/Adwaita.css b/share/ui/Adwaita.css new file mode 100644 index 0000000..ebec8d2 --- /dev/null +++ b/share/ui/Adwaita.css @@ -0,0 +1,63 @@ +/* ADWAITA SPECIFIC STYLE */ + + +/* + * Keep as small as possible + */ + +spinbutton { + padding: 0; + outline-style: none; +} + +spinbutton entry { + padding-left: 2px; + padding-right: 0; +} + +spinbutton undershoot { + outline-style: none; +} + +spinbutton entry { + padding-left: 2px; + padding-right: 0; +} + +spinbutton undershoot { + outline-style: none; +} + +.inkswitch slider { + min-width: 18px; + min-height: 18px; +} + +.inkswitch image { + color: transparent; + background-color: transparent; + background-image: image(transparent); + -gtk-icon-style:symbolic; +} + +.inkswitch { + margin: 2px; + padding: 0; + font-size: 8px; +} + +/* Reduce width of +/- buttons. */ +.up, +.down { + padding-left: 0; + padding-right: 0; +} + +#monoStrokeWidth, +#fillEmptySpace, +#SelectStatus, +#CoordinateStatusX, +#CoordinateStatusY, +#DesktopMainTable spinbutton{ + font-family: sans-serif; +} \ No newline at end of file diff --git a/share/ui/CMakeLists.txt b/share/ui/CMakeLists.txt new file mode 100644 index 0000000..7b1450b --- /dev/null +++ b/share/ui/CMakeLists.txt @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +file(GLOB _FILES "*.xml" "*.rc" "*.css" "*.ui" "*.glade") +install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/ui) + diff --git a/share/ui/dialog-css.glade b/share/ui/dialog-css.glade new file mode 100644 index 0000000..4a5febb --- /dev/null +++ b/share/ui/dialog-css.glade @@ -0,0 +1,134 @@ + + + + + + True + False + vertical + top + + + True + False + + + True + False + + + True + False + 5 + list-add + + + + + False + True + 0 + + + + + True + False + + + True + False + Selector + + + + + False + True + 1 + + + + + True + True + + + False + True + 2 + + + + + True + False + { + + + False + True + 4 + + + + + False + True + 1 + + + + + True + False + True + True + natural + natural + False + True + True + False + 6 + True + + + + + + False + True + 2 + + + + + True + False + True + start + start + } + + + False + False + 3 + + + + + True + False + 6 + 6 + + + False + True + 4 + + + + diff --git a/share/ui/dialog-filter-editor.glade b/share/ui/dialog-filter-editor.glade new file mode 100644 index 0000000..908e0d7 --- /dev/null +++ b/share/ui/dialog-filter-editor.glade @@ -0,0 +1,381 @@ + + + + + + + + + + + + + + + + + + test1 + a + False + + + + test2 + b + False + + + + test3 + c + False + + + + + + False + + + + + + + + + + + + whatever + + + second choice + + + + + True + False + vertical + + + True + False + + + True + False + + filter1 + filter2 + + + + True + True + 0 + + + + + True + False + FER: + + + False + True + 1 + + + + + True + False + X: + + + False + True + 2 + + + + + True + True + number + vertical + -0.10000000000000001 + + + False + True + 3 + + + + + True + False + Y: + + + False + True + 4 + + + + + True + True + vertical + + + False + True + 5 + + + + + True + False + W: + + + False + True + 6 + + + + + True + True + vertical + + + False + True + 7 + + + + + True + False + H: + + + False + True + 8 + + + + + True + True + vertical + + + False + True + 9 + + + + + False + True + 0 + + + + + True + True + + + True + False + vertical + + + True + True + FilterStore + False + True + True + True + True + + + + + + fixed + Effect + + + + 0 + + + + + + + fixed + Name + + + + 1 + + + + + + + fixed + Origin(s) + True + + + FilterStore1 + 0 + + + + + + + True + True + 0 + + + + + True + False + + + True + False + + + True + True + 0 + + + + + Add + True + True + True + + + False + True + 1 + + + + + False + False + end + 1 + + + + + True + True + + + + + True + False + vertical + + + True + False + + + True + True + 0 + + + + + + + + True + False + + + True + False + gtk-dialog-info + 6 + + + False + False + 0 + + + + + True + False + This effect does this and that. + + + True + True + 1 + + + + + True + True + 2 + + + + + True + True + + + + + True + True + 1 + + + + + True + False + FilterStore1 + 0 + 0 + + diff --git a/share/ui/dialog-livepatheffect-add.glade b/share/ui/dialog-livepatheffect-add.glade new file mode 100644 index 0000000..28ab7d2 --- /dev/null +++ b/share/ui/dialog-livepatheffect-add.glade @@ -0,0 +1,450 @@ + + + + + + LPEDialogSelector + False + Live Path Effects Selector + True + center-on-parent + True + dialog + True + static + True + + + + + + False + vertical + top + + + False + end + + + + + + + + + False + False + 0 + + + + + True + False + start + vertical + top + + + True + False + True + + + True + False + start + + + 400 + True + True + True + True + True + True + True + edit-find-symbolic + False + False + + + + False + True + 0 + + + + + True + False + + + False + True + 5 + 1 + + + + + True + False + start + center + expand + + + True + True + False + end + center + False + + + LPESelectorEffectPackLessImage + True + False + center + center + 22 + pack-less + 2 + + + + + False + False + 0 + True + + + + + True + True + False + center + center + False + LPESelectorEffectRadioPackLess + + + LPESelectorEffectPackMoreImage + True + False + center + center + 22 + pack-more + 2 + + + + + False + False + 1 + True + + + + + True + True + False + start + center + False + LPESelectorEffectRadioPackLess + + + LPESelectorEffectListImage + True + False + center + center + 22 + hamburger-menu + 2 + + + + + False + False + 2 + True + + + + + False + False + 2 + True + + + + + True + False + + + False + True + 4 + 3 + + + + + LPESelectorEffectEventFavShow + True + False + True + center + center + + + LPESelectorEffectFavShowImage + True + False + center + center + 25 + draw-star-outline + 2 + + + + + + False + True + 4 + + + + + True + False + + + False + True + 5 + 5 + + + + + LPEExperimental + True + True + center + center + + + False + False + 7 + + + + + True + False + Show Experimental + + + False + True + 5 + 8 + + + + + + + + True + True + 0 + + + + + False + True + Message + center + end + + + + False + True + 1 + + + + + True + True + never + in + 800 + 10 + True + + + LPEViewport + True + False + + + LPESelectorFlowBox + True + False + True + start + 1 + 1 + 3 + 30 + + + + + + + False + False + 2 + + + + + False + True + 0 + + + + + + + + LPESelectorEffectInfoPop + False + True + start + LPEInfo + bottom + False + False + + + LPESelectorEffectInfoEventBox + True + False + + + True + False + vertical + + + True + False + + + LPESelectorEffectInfoIcon + True + False + start + 40 + align-vertical-baseline + 6 + + + False + False + 0 + + + + + LPESelectorEffectInfoName + True + False + Name + center + True + 20 + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + LPESelectorEffectInfoDescription + True + False + Description + center + True + 20 + + + False + True + 2 + + + + + + + + + diff --git a/share/ui/dialog-livepatheffect-effect.glade b/share/ui/dialog-livepatheffect-effect.glade new file mode 100644 index 0000000..bee2189 --- /dev/null +++ b/share/ui/dialog-livepatheffect-effect.glade @@ -0,0 +1,270 @@ + + + + + + LPESelectorEffect + True + True + start + False + + + True + True + False + start + False + vertical + top + + + LPEOverlay + True + False + + + True + False + center + start + 60 + align-vertical-baseline + 6 + + + 1 + + + + + True + False + True + end + start + + + LPESelectorEffectFavTop + True + False + end + start + 20 + draw-star + 2 + + + + + + 2 + + + + + False + True + 0 + + + + + True + False + LPEName + center + True + end + 14 + 23 + + + + False + False + 1 + + + + + 200 + False + True + Description + True + end + True + 1 + + + False + False + 10 + 2 + + + + + Experimental + True + False + True + True + + + False + True + 3 + + + + + True + False + True + + + True + False + True + center + center + 5 + 5 + 5 + 5 + 16 + go-down + 2 + + + + + + False + True + 4 + + + + + LPESelectorButtonBox + True + False + center + start + top + center + + + LPESelectorEffectEventInfo + True + False + end + start + False + + + LPESelectorEffectInfo + False + end + start + 23 + info-outline + 2 + + + + + + False + True + end + 0 + True + + + + + LPESelectorEffectEventFav + True + False + center + start + False + + + LPESelectorEffectFav + False + center + start + 23 + draw-star-outline + 2 + + + + + + False + True + end + 1 + True + + + + + LPESelectorEffectEventApply + True + False + start + start + False + + + False + start + start + 23 + on-outline + 2 + + + + + + False + True + end + 2 + True + + + + + True + True + 5 + + + + + + + diff --git a/share/ui/dialog-trace.glade b/share/ui/dialog-trace.glade new file mode 100644 index 0000000..39f96ce --- /dev/null +++ b/share/ui/dialog-trace.glade @@ -0,0 +1,1099 @@ + + + + + + 2 + 256 + 8 + 1 + 10 + + + -10 + 10 + 1 + 0.20000000000000001 + 10 + + + -20 + 20 + 5 + 1 + 10 + + + 2 + 8 + 4 + 1 + 10 + + + -10 + 10 + 1 + 0.20000000000000001 + 10 + + + 1 + 10 + 2 + 0.1 + 1 + + + 1 + 0.45000000000000001 + 0.01 + 10 + + + 2 + 64 + 8 + 1 + 10 + + + 1 + 20 + 4 + 1 + 10 + + + 1 + 0.65000000000000002 + 0.01 + 10 + + + 5 + 0.20000000000000001 + 0.050000000000000003 + 10 + + + 1.3400000000000001 + 1 + 0.01 + 10 + + + 1000 + 2 + 1 + 10 + + + + This dialog allows you to automatically convert a raster graphic into vector paths. Several options are available for different use cases: + * "Brightness cutoff" detects areas that are darker than the threshold value and creates a path enclosing them (using potrace). + * "Edge detection" detects changes greater than the given threshold value in the brightness of color patches and creates paths to separate them (using potrace). + * "Color quantization" separates the image into the given number of colors, and separates them with a path (using potrace). + * "Autotrace" uses the autotrace algorithm with the given option. + * "Centerline tracing" tries to vectorize a line drawing (with autotrace). + * "Multiple scans" options separate the image into a number of scans, depending on brightness, color separation, or gray levels, and creates several paths for those. It can also use autotrace. + * The "Pixel art" tab allows to use the depixelize algorithm to vectorize pixel art images. + + * NOTE: + 1) Save your work before tracing + 2) Watch your pixel count: "Trace pixel art" creates one path per pixel. It is not recommended for images that are not pixel art. + 3) Autotrace is slower than potrace, it is not recommended for big images. Preprocessing your images to increase contrast is recommended. + 4) If your goal is to get few nodes and good precision, manual tracing is always best. + + + + + True + False + vertical + + + True + True + 200 + + + True + True + + + True + False + 5 + 5 + 5 + 5 + vertical + + + True + False + Create a single path or create a group of paths + center + 5 + choice_scan + + + False + True + 0 + + + + + True + False + + + True + False + vertical + + + True + False + 0 + + Brightness cutoff + Edge detection + Color quantization + Autotrace + Centerline tracing (autotrace) + + + + False + True + 0 + + + + + True + False + True + + + + True + False + 5 + + + True + False + vertical + + + True + False + Brightness threshold + + + False + True + 0 + + + + + True + True + SS_BC_T + 3 + + + False + True + 1 + + + + + SS_BC + + + + + True + False + vertical + + + True + False + Edge threshold + + + False + True + 0 + + + + + True + True + SS_ED_T + 3 + + + False + True + 1 + + + + + SS_ED + 1 + + + + + True + False + vertical + + + True + False + Colors + + + False + True + 0 + + + + + True + True + SS_CQ_T + + + False + True + 1 + + + + + SS_CQ + 2 + + + + + True + False + vertical + + + True + False + Filter iterations + + + False + True + 0 + + + + + True + True + SS_AT_FI_T + 0 + + + False + True + 1 + + + + + True + False + Error threshold + + + False + True + 0 + + + + + True + True + SS_AT_ET_T + 1 + + + False + True + 1 + + + + + SS_AT + 3 + + + + + True + False + vertical + + + True + False + Filter iterations + + + False + True + 0 + + + + + True + True + SS_AT_FI_T + 0 + + + False + True + 1 + + + + + True + False + Error threshold + + + False + True + 0 + + + + + True + True + SS_AT_ET_T + 1 + + + False + True + 1 + + + + + SS_CT + 4 + + + + + False + True + 0 + + + + + Invert image + True + True + False + Invert black and white regions + start + 25 + True + + + False + True + 1 + + + + + False + True + 1 + + + + + SingleScan + Single scan + + + + + True + False + True + + + True + False + 0 + + Brightness steps + Colors + Grays + Autotrace (slower) + + + + 0 + 0 + 2 + + + + + Smooth + True + True + False + Apply Gaussian blur to the bitmap before tracing + True + + + 1 + 1 + + + + + Stack + True + True + False + Stack scans on top of one another (no gaps) instead of tiling (usually with gaps) + True + + + 1 + 2 + + + + + Remove background + True + True + False + Remove bottom (background) layer when done + True + + + 1 + 3 + + + + + True + False + Scans + + + 0 + 1 + + + + + True + True + The desired number of scans + MS_scans + + + 0 + 2 + + + + + True + False + + + 0 + 3 + + + + + page1 + Multiple scans + 1 + + + + + True + True + 1 + + + + + True + False + Options + + + + + + False + True + 2 + + + + + True + False + True + + + Speckles + True + True + False + Ignore small spots (speckles) in the bitmap + True + True + + + 0 + 0 + + + + + Smooth corners + True + True + False + Smooth out sharp corners of the trace + True + True + + + 0 + 1 + + + + + Optimize + True + True + False + Try to optimize paths by joining adjacent Bezier curve segments + True + True + + + 0 + 2 + + + + + True + True + Speckles of up to this many pixels will be suppressed + speckles + + + 1 + 0 + + + + + True + True + Increase this to smooth corners more + smooth + 2 + + + 1 + 1 + + + + + True + True + Increase this to reduce the number of nodes in the trace by more aggressive optimization + optimize + 2 + 0.20000000000000001 + + + 1 + 2 + + + + + False + True + 3 + + + + + + + True + False + Trace bitmap + + + False + + + + + True + False + vertical + + + True + False + +Heuristics + + + + + + + False + True + 0 + + + + + True + False + 5 + 5 + 4 + True + + + True + False + Favors connections that are part of a long curve + Curves (multiplier) + + + 0 + 0 + + + + + True + False + Avoid single disconnected pixels + Islands (weight) + + + 0 + 1 + + + + + True + False + Favors connections that are part of foreground color + Sparse pixels +(window radius) + + + 0 + 2 + + + + + True + False + Favors connections that are part of foreground color + Sparse pixels +(multiplier) + + + 0 + 3 + + + + + True + True + The heuristic computed vote will be multiplied by this value + PA_curves + 3 + True + 1 + + + 1 + 0 + + + + + True + True + A constant vote value + PA_islands + True + 5 + + + 1 + 1 + + + + + True + True + The radius of the window analyzed + PA_sparse1 + True + 2 + + + 1 + 2 + + + + + True + True + The heuristic computed vote will be multiplied by this value + PA_sparse2 + 3 + True + 1 + + + 1 + 3 + + + + + False + True + 1 + + + + + True + False + +Output + + + + + + + False + True + 2 + + + + + Voronoi + True + True + False + Output composed of straight lines + 5 + True + True + + + False + True + 3 + + + + + B-splines + True + True + False + Preserve staircasing artifacts + 5 + 5 + True + True + RB_PA_voronoi + + + False + True + 4 + + + + + 1 + + + + + True + False + Pixel art + + + 1 + False + + + + + + True +True +never +in + + + True + True + False + word + helptext + + + + + + + + 2 + + + + + True + False + Help + + + 2 + False + + + + + False + False + + + + + True + False + 5 + 5 + 5 + 5 + vertical + + + 200 + 200 + True + False + + + True + True + 0 + + + + + True + False + + + + + + + + + + + + + Update + True + True + True + + + False + True + 0 + + + + + SIOX + True + True + False + Cover the area you want to select as the foreground + True + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + + + + + True + True + 0 + + + + + True + False + baseline + 5 + 5 + 3 + end + + + gtk-revert-to-saved + True + True + True + True + + + True + True + 0 + + + + + gtk-stop + True + True + True + True + + + True + True + 1 + + + + + gtk-ok + True + True + True + True + + + True + True + 2 + + + + + False + True + 1 + + + + diff --git a/share/ui/inkscape-application.glade b/share/ui/inkscape-application.glade new file mode 100644 index 0000000..ab9d946 --- /dev/null +++ b/share/ui/inkscape-application.glade @@ -0,0 +1,31 @@ + + + + + + + _File +
+ + _New + app.new + <Primary>n + + + _Quit + app.quit + <Primary>q + +
+
+ + _Help +
+ + _About + app.about + +
+
+
+
diff --git a/share/ui/menus.xml b/share/ui/menus.xml new file mode 100644 index 0000000..24a8801 --- /dev/null +++ b/share/ui/menus.xml @@ -0,0 +1,326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/ui/style.css b/share/ui/style.css new file mode 100644 index 0000000..af448ed --- /dev/null +++ b/share/ui/style.css @@ -0,0 +1,447 @@ +/* GTK3 WIDGET STYLING */ + + +/* + * Keep in order of: + * General -> Specific + * Order of appearance in widget tree. + * See GtkInspector + * GTK_DEBUG=interactive ~/path_to_gtk3/bin/inkscape + * + * We need a standardized naming scheme. + * + * As of Gtk 3.20, you cannot use widget names. + */ + + +/* Standard theme based colors. Prefer these. + * + * @theme_bg_color + * @theme_fg_color + * @theme_base_color + * @theme_text_color + * @theme_selected_bg_color + * @theme_selected_fg_color + * @theme_tooltip_bg_color + * @theme_tooltip_fg_color + * + */ + + +/* Our own custom shades... better not to use. + * Lightest to darkest based on linear rgb. + */ + +@define-color bg_color0 #ffffff; + +/* White */ + +@define-color bg_color05 #f8f8f8; + +/* Slightly off white */ + +@define-color bg_color1 #f0f0f0; +@define-color bg_color2 #e0e0e0; +@define-color bg_color3 #d0d0d0; +@define-color bg_color4 #bbbbbb; + +/* 50% Gray */ + +@define-color bg_color5 #a5a5a5; +@define-color bg_color6 #898989; +@define-color bg_color7 #636363; +@define-color bg_color8 #000000; + +/* Black */ + + +/* Inkscape CSS helper + * to add a class to a widget do some thing like + * widget->get_style_context()->add_class("mycoolclass"); + * we define a bunch of helper CSS styles + * Each Inkscape desktop has some classes in top level window + * called "dark|bright" (syncked with dark or brighrt themes) and "symbolic|regular" (defined by the user in themes preferences) + * so you can style using this clases + * by this way you can always know if the UI is in dark mode or using symbolic icons + * Also added some helper clases: + * ".inverted" invert colors fon widhet and childs + * ".symbolic" Force icon symbolic + * ".regular" Force colorful icons + * " .forcebright Force darlk even if the towp wingow has clas dark (happends when theme is dark) + * " .forcedark" Force darlk even if the towp wingow has clas bright + * :::::::: Combo box. + * "..combobright" Combo bright + */ + +*:disabled image { + opacity: 0.4; +} + +.symbolic image { + -gtk-icon-style: symbolic; +} + +.regular image { + -gtk-icon-style: regular; +} + +.regular .symbolic image { + -gtk-icon-style: symbolic; +} + +.inverted, +.dark .forcebright, +.bright .forcedark { + color: @theme_bg_color; + background-color: @theme_fg_color; + background-image: image(@theme_fg_color); + caret-color: @theme_bg_color; + -gtk-secondary-caret-color: @theme_fg_color; +} + +.inverted :not(menuitem):not(.rawstyle):not(overshoot):not(undershoot):not(selection), +.bright .forcedark :not(menuitem):not(.rawstyle):not(overshoot):not(undershoot):not(selection), +.dark .forcebright :not(menuitem):not(.rawstyle):not(overshoot):not(undershoot):not(selection) { + color: inherit; + background-color: inherit; + background-image: inherit; +} + +.dark .combobright .combo, +.dark .combobright menu{ + background-color: @theme_text_color; + background-image: linear-gradient(to top, @theme_text_color, @theme_fd_color); + caret-color: @theme_base_color; + -gtk-secondary-caret-color: @theme_base_color; +} +.dark .combobright box *{ + color: @theme_base_color; +} +.dark .combobright .combo *, +.dark .combobright menu *{ + color: inherit; +} + +/* atribute dialog popup size */ +.attrpop textview { + font-size: 13px; +} + +/* +*to get system default colors +* with Gdk::RGBA success =_symbolic_error_color.get_stseparatole_context()->get_color(); +* _symbolic_error_color has one of this calsses applied +*/ + +.system_base_color { + color: @theme_fg_color; + background-color: @theme_bg_color; +} + +.system_error_color { + color: @error_color; +} + +.system_warning_color { + color: @warning_color; +} + +.system_success_color { + color: @success_color; +} + +iconview *:hover { + border-width: 1px; + border-color: @theme_fg_color; + border-style: solid; + border-radius: 4px; +} + +.dark iconview *:hover { + border-color: @theme_bg_color; +} + +.inksmall { + font-size: 11px; +} + + +/* LPE Dialog add */ +#LPESelectorFlowBox GtkFlowBoxChild, +#LPESelectorFlowBox flowboxchild { + border-width: 0px; + border-radius: 6px; + margin: 10px; + padding: 10px; + margin-bottom: 0px; + padding-bottom: 10px; + outline: none; +} + +#LPESelectorFlowBox flowboxchild * { + color: @theme_fg_color; +} + +#LPESelectorFlowBox flowboxchild:selected image, +#LPESelectorFlowBox flowboxchild:selected label { + color: @theme_selected_fg_color; + background-color: @theme_selected_bg_color; + background-image: image(@theme_selected_bg_color); +} + +#LPESelectorFlowBox *:selected #LPESelectorEffectFavTop, +#LPESelectorFlowBox *:selected:focus #LPESelectorEffectFavTop { + opacity: 0; +} + +#LPESelectorFlowBox .lpename { + font-size: 16px; + margin-bottom: 5px; +} + +#LPESelectorFlowBox .lpeinfo { + font-size: 16px; + padding: 20px; +} + +#LPESelectorFlowBox .lpedisabled { + opacity: 0.3; +} + +#LPESelectorEffectInfoPop { + padding: 15px; +} + +#LPESelectorEffectInfoName { + font-weight: bold; + padding: 15px; +} + +#LPEDialogSelector .lpeinfo { + padding: 8px; + background-color: @theme_bg_color; + color: @theme_selected_fg_color; + border-color: @theme_selected_bg_color; + border-style: solid; + margin: 0px 0px 10px 0px; + border-radius: 0px; + border-width: 0 0 1px 0; + padding:5px; +} + +#LPESelectorFlowBox image{ + background-color:@theme_bg_color; + border-color:transparent; +} + +#LPEExperimental image { + color: transparent; +} + +#LPEDialogSelector .searchbar entry image, +#LPEDialogSelector .searchbar label, +#LPEDialogSelector .searchbar #LPESelectorEffectFavShowImage { + color: @theme_fg_color; +} + +#LPEDialogSelector.LPEPackMore flowboxchild { +margin:5px 1px 0px; +padding:3px 3px 10px 3px; +} + +#LPEDialogSelector.LPEPackMore flowboxchild label { +font-size:14px; +} + +#LPEDialogSelector.LPEPackMore #LPESelectorEffectInfoPop label{ +font-size:13px; +} + +#LPEDialogSelector.LPEList .lpename { + margin-bottom: 1px; + font-weight:bold; +} + +#LPEDialogSelector.LPEList flowboxchild { + padding:3px 1px 3px 10px; + margin:1px 0px 1px; + border-radius:0; + border-style:dotted; + border-color:@theme_fg_color; + border-width: 0 0 1px 0; +} + +#LPEDialogSelector.LPEList flowboxchild:selected { + border-style:none; + margin:-3px 0px 0px; + padding:4px 1px 4px 10px; +} + +#LPEDialogSelector.LPEList #LPESelectorFlowBox *:selected #LPESelectorEffectFavTop, +#LPEDialogSelector.LPEList #LPESelectorFlowBox *:selected:focus #LPESelectorEffectFavTop { + opacity: 1; +} + +/* Selector and XML dialog */ +#SelectorsAndStyleDialog button { + padding: 4px; + min-height: 16px; + margin: 2px; + padding: 2px; +} + +#XMLAndAttributesDialog .toggle, +#SelectorsAndStyleDialog .toggle { + min-width: 18px; + padding-left: 6px; + padding-right: 6px; + padding-top: 0; + padding-bottom: 0; +} + +#XMLAndAttributesDialog .radio.image-button, +#SelectorsAndStyleDialog .radio.image-button { + margin: 0; + padding: 0px; + border-radius: 2px 0 0 2px; +} + +#XMLAndAttributesDialog .radio.image-button:last-child, +#SelectorsAndStyleDialog .radio.image-button:last-child { + border-radius: 0 2px 2px 0; + border-left-width: 0; +} + +#SelectorsAndStyleDialog treeview button { + border-width: 0; + margin: 0 0 1px 0; +} + +#SelectorsAndStyleDialog treeview button:nth-child(3), +#SelectorsAndStyleDialog treeview.style_sheet button:nth-child(4) { + border-width: 0 0 0 2px; + border-color: @theme_fg_color; + border-style: solid; + opacity: 0.5; +} + +#SelectorsAndStyleDialog treeview.style_sheet button:nth-child(3) { + border-width: 0; +} + +#SelectorsAndStyleDialog treeview button { + min-height: 3px; + font-size: 1px; +} + +#InkRuler { + font-size: 7pt; +} + +/* The actual canvas (Inkscape's drawing area). */ +SPCanvas { + background-color: white; +} + +#TextFontFamilyAction_combobox { + -GtkComboBox-appears-as-list: true; +} + +#LockGuides, +#StickyZoom, +#CMS_Adjust { + padding: 0; +} + +/* Keep palette scrollbar from generating warnings. */ +#PreviewHolderScroller .vertical slider { + min-height: 15px; +} + +/* Override minimum size of container children for palette. */ +#ColorItemPreview { + min-height: 5px; + min-width: 5px; +} + +/* Reduce width of Fill and Stroke dialog */ +#ColorModeButton { + padding-left: 0; + padding-right: 0; +} + +/* InkSpinScale */ +#InkSpinScale { + background: @theme_bg_color; + border: 1px black; + border-radius: 3px; + padding: 0px; +} + +#InkSpinScale spinbutton { + border-color: #eee; + border-width: 0 0 0 0; + border-radius: 0 3px 3px 0; + box-shadow: none; + padding: 0 0 0 1px; + min-height: 10px; +} + + +/* Hide slider */ +#InkSpinScale slider { + background: none; + border: none; + outline: none; + min-width: 0px; + min-height: 0px; + padding: 0px; + margin: 0px; +} + +#InkSpinScale slider, +#InkSpinScale highlight { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +#InkSpinScale scale { + padding: 0px; +} + +#InkSpinScale trough { + min-height: 30px; +} + +#InkSpinScale box.active { + box-shadow: 0 0 0 1px rgb(74, 144, 217); +} + +#InkSpinScale spinbutton entry { + padding: 0; + outline-style: none; +} + +#UnicodeIconView { + font-size: 16px; +} + +/* GtkTreeView: clarify drop locations (especially important for XML editor) */ +treeview.view:drop(active) { + border-style: solid; + border-width: 2px; +} + +treeview.view:drop(active).after { + border-style: none none solid none; +} + +treeview.view:drop(active).before { + border-style: solid none none none; +} + +treeview.view:drop(active).after, +treeview.view:drop(active).before { + border-width: 4px; + border-radius: 10px; +} diff --git a/share/ui/toolbar-commands.ui b/share/ui/toolbar-commands.ui new file mode 100644 index 0000000..0b237be --- /dev/null +++ b/share/ui/toolbar-commands.ui @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/ui/toolbar-tool.ui b/share/ui/toolbar-tool.ui new file mode 100644 index 0000000..cb2d6b2 --- /dev/null +++ b/share/ui/toolbar-tool.ui @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/ui/toolbox.xml b/share/ui/toolbox.xml new file mode 100644 index 0000000..5399465 --- /dev/null +++ b/share/ui/toolbox.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/share/ui/units.xml b/share/ui/units.xml new file mode 100644 index 0000000..713a538 --- /dev/null +++ b/share/ui/units.xml @@ -0,0 +1,101 @@ + + + + % + % + % + 1.00 + Percentage + + + pixel + pixels + px + 1.00 + CSS Pixels (96/inch) + + + point + points + pt + 1.333333333333333 + PostScript points (72/inch) + + + pica + picas + pc + 16.0 + 12 points + + + inch + inches + in + 96.0 + Inches (96 px/in) + + + millimeter + millimeters + mm + 3.779527559055119 + Millimeters (25.4 mm/in) + + + centimeter + centimeters + cm + 37.79527559055119 + Centimeters (10 mm/cm) + + + degree + degrees + ° + 1.00 + Degrees + + + radian + radians + rad + 57.29577951308232 + Radians (180/pi deg/rad) + + + gradian + gradians + grad + 0.9 + Gradians (360/400 deg/grad) + + + turn + turns + turn + 360 + Turns (360 deg/turn) + + + font-height + font-heights + em + 1.00 + Font height + + + x-height + x-heights + ex + 0.50 + Height of letter 'x' + + + half-em + half-ems + en + 0.50 + Half of font height + + diff --git a/share/ui/win32.css b/share/ui/win32.css new file mode 100644 index 0000000..0602d04 --- /dev/null +++ b/share/ui/win32.css @@ -0,0 +1,146 @@ +/* Appearance of switches */ + +switch slider { + background-image: none; + background-color: @selected_bg_color; + border-radius: 3px; +} + +switch image { + background-color: -gtk-win32-color(button, 10); + border-radius: 1px; +} + + +/* Menu appearance */ + +menu separator { + border-bottom-width: 1px; + border-bottom-style: solid; + margin-left: 5px; + margin-right: 5px; +} + +toolbar separator { + border-bottom-width: 1px; + border-bottom-style: solid; + margin: 2px; +} + +menuitem arrow { + min-width: 10px; + min-height: 10px; +} + +menuitem arrow.right { + -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); +} + +menuitem arrow.left { + -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); +} + + +/* Add margin to images */ + +widget>box>image, +toolbar button image { + margin: 2px; +} + + +/* Style spinbuttons, GTK style (see discussion in https://gitlab.com/inkscape/inkscape/-/issues/762) */ + +spinbutton { + background-image: none; +} + +spinbutton button { + margin-top: 0px; + margin-bottom: 0px; + background-size: 20px 100%; + border-width: 1px; + border-style: solid; + background-image: none; + color: black; + background-color: white; + border-color: shade(-gtk-win32-color(button, menu), 0.6); +} + +spinbutton button.down { + margin-right: 15px; +} + +spinbutton button:hover { + background-image: -gtk-win32-theme-part(button, 1, 2); + background-size: 200% 200%; + ; + background-position: center; + border-color: #add8e6; +} + +spinbutton button:disabled { + background-color: blue; +} + +spinbutton entry:not(:disabled) { + border: 1px solid shade(-gtk-win32-color(button, menu), 0.6); + background-color: white; +} + +spinbutton entry:disabled, +spinbutton button:disabled { + background-color: -gtk-win32-color(button, 4); +} + +spinbutton entry:disabled { + border-width: 1px; + border-style: solid; +} + + +/* Fix height of sliders in F&S dialog */ + +#InkSpinScale spinbutton { + padding-top: 10px; + padding-bottom: 10px; +} + + +/* Fix colors in LPE dialog */ + +@define-color theme_fg_color black; +#LPEDialogSelector separator { + border-color: black; + border-right: 1px solid; + margin: 2px; +} + + +/* Fix hidden palette */ + +#InkscapePanel #PreviewHolderGrid { + padding-bottom: 20px; +} + + +/* Fix right button of horizontal scrollbar */ + +scrollbar.horizontal:hover button.down:disabled { + background-image: -gtk-win32-theme-part(scrollbar, 1, 16); +} + +scrollbar.horizontal:hover button.down:active { + background-image: -gtk-win32-theme-part(scrollbar, 1, 15); +} + + +/* Make room for the scroll bar of the dialog region*/ + +#DockBox { + margin-right: 15px; +} + +#InkSpinScale spinbutton { + margin-right: 5px; +} \ No newline at end of file -- cgit v1.2.3