summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/icons/CMakeLists.txt1
-rw-r--r--share/icons/hicolor/CMakeLists.txt1
-rw-r--r--share/icons/hicolor/symbolic/actions/dialog-align-and-distribute-symbolic.svg102
-rw-r--r--share/icons/nextgen/CMakeLists.txt17
-rw-r--r--share/icons/nextgen/index.theme64
-rw-r--r--src/inkscape.h1
-rw-r--r--src/live_effects/lpe-measure-segments.cpp5
-rw-r--r--src/ui/dialog/selectorsdialog.h1
-rw-r--r--src/ui/dialog/styledialog.h1
9 files changed, 96 insertions, 97 deletions
diff --git a/share/icons/CMakeLists.txt b/share/icons/CMakeLists.txt
index 89bcddf43..3080b2482 100644
--- a/share/icons/CMakeLists.txt
+++ b/share/icons/CMakeLists.txt
@@ -1,4 +1,5 @@
add_subdirectory(application)
add_subdirectory(hicolor)
+add_subdirectory(nextgen)
add_subdirectory(Tango)
diff --git a/share/icons/hicolor/CMakeLists.txt b/share/icons/hicolor/CMakeLists.txt
index c9a80a69e..7f3d00f3e 100644
--- a/share/icons/hicolor/CMakeLists.txt
+++ b/share/icons/hicolor/CMakeLists.txt
@@ -1,6 +1,5 @@
set(THEME hicolor)
install(FILES "index.theme" DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME})
-install(FILES "highlights.css" DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME})
set(PIXMAP_SIZES "scalable" "symbolic")
set(CONTENT "actions")
diff --git a/share/icons/hicolor/symbolic/actions/dialog-align-and-distribute-symbolic.svg b/share/icons/hicolor/symbolic/actions/dialog-align-and-distribute-symbolic.svg
index 911996f7e..cfa350d03 100644
--- a/share/icons/hicolor/symbolic/actions/dialog-align-and-distribute-symbolic.svg
+++ b/share/icons/hicolor/symbolic/actions/dialog-align-and-distribute-symbolic.svg
@@ -1,91 +1,13 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- inkscape:version="1.0alpha2 (a0e047e17e, 2019-06-20, custom)"
- sodipodi:docname="dialog-align-and-distribute-symbolic.svg"
- viewBox="0 0 16 16"
- height="16"
- width="16"
- id="svg1"
- version="1.1">
- <metadata
- id="metadata21">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs19" />
- <sodipodi:namedview
- inkscape:document-rotation="0"
- inkscape:current-layer="dialog-align-and-distribute"
- inkscape:window-maximized="1"
- inkscape:window-y="27"
- inkscape:window-x="0"
- inkscape:window-height="1016"
- inkscape:window-width="1920"
- inkscape:cy="17.841732"
- inkscape:cx="-5.4727695"
- inkscape:zoom="15.839192"
- showgrid="true"
- id="namedview"
- guidetolerance="10"
- gridtolerance="10"
- objecttolerance="10">
- <inkscape:grid
- id="grid"
- type="xygrid" />
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) and export_objects.py -->
+<svg xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg1" width="16" height="16" viewBox="0 0 16 16" sodipodi:docname="dialog-align-and-distribute-symbolic.svg"><sodipodi:namedview objecttolerance="10" gridtolerance="10" guidetolerance="10" id="namedview" showgrid="true" inkscape:zoom="0.6002936" inkscape:cx="732.67439" inkscape:cy="-567.94603" inkscape:window-width="1920" inkscape:window-height="1016" inkscape:window-x="0" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="layer1">
+ <inkscape:grid type="xygrid" id="grid"/>
</sodipodi:namedview>
- <style
- id="style226">.base { fill: #333333; }
-.success { fill:#d54ac9; }
-.warning { fill:#177579; }
-.error { fill:#457211; }
-.dark { }
-</style>
- <style
- id="highlights"> @import '../../highlights.css'; </style>
- <g
- id="dialog-align-and-distribute">
- <path
- inkscape:connector-curvature="0"
- style="opacity:0;"
- d="M 0,0 H 16 V 16 H 0 Z"
- id="background" /><!--Add this to all icons at dirst place and do not change the id or style-->
- <path
- style="opacity:1"
- d="M 2,2 H 3 V 15 H 2 Z"
- id="rect18737"
- inkscape:connector-curvature="0"
- class="base" />
- <path
- style="opacity:1"
- d="m 5,2 h 7 V 5 H 5 Z"
- class="success"
- id="rect18739"
- inkscape:connector-curvature="0" />
- <path
- style="opacity:1"
- d="m 5,7 h 10 v 3 H 5 Z"
- class="warning"
- id="rect18741"
- inkscape:connector-curvature="0" />
- <path
- style="opacity:1"
- d="m 5,12 h 6 v 3 H 5 Z"
- class="error"
- id="rect18743"
- inkscape:connector-curvature="0" />
- </g>
-</svg>
+ <g transform="translate(-135,-807.36218)" inkscape:label="00069" id="dialog-align-and-distribute">
+ <path inkscape:connector-curvature="0" id="rect18735" d="m 135,807.36218 h 16 v 16 h -16 z" style="opacity:0;fill:none"/>
+ <path inkscape:connector-curvature="0" id="rect18737" d="m 136,808.36218 h 1 v 13 h -1 z" style="opacity:1"/>
+ <path inkscape:connector-curvature="0" id="rect18739" d="m 139,808.36218 h 7 v 3 h -7 z" style="opacity:1"/>
+ <path inkscape:connector-curvature="0" id="rect18741" d="m 139,813.36218 h 10 v 3 h -10 z" style="opacity:1"/>
+ <path inkscape:connector-curvature="0" id="rect18743" d="m 139,-821.36218 h 6 v 3 h -6 z" style="opacity:1" transform="scale(1,-1)"/>
+ </g>
+ </svg>
diff --git a/share/icons/nextgen/CMakeLists.txt b/share/icons/nextgen/CMakeLists.txt
new file mode 100644
index 000000000..93ff565a5
--- /dev/null
+++ b/share/icons/nextgen/CMakeLists.txt
@@ -0,0 +1,17 @@
+set(THEME nextgen)
+install(FILES "index.theme" DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME})
+install(FILES "highlights.css" DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME})
+
+set(PIXMAP_SIZES "scalable" "symbolic")
+set(CONTENT "actions")
+
+foreach(pixmap_size ${PIXMAP_SIZES})
+ foreach(content ${CONTENT})
+ FILE(GLOB PIXMAP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${pixmap_size}/${content}/*.png ${CMAKE_CURRENT_SOURCE_DIR}/${pixmap_size}/${content}/*.svg)
+ install(FILES ${PIXMAP_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME}/${pixmap_size}/${content})
+ endforeach(content)
+endforeach(pixmap_size)
+
+if(WIN32)
+ install(CODE "execute_process(COMMAND gtk-update-icon-cache \${CMAKE_INSTALL_PREFIX}/${INKSCAPE_SHARE_INSTALL}/icons/${THEME})")
+endif()
diff --git a/share/icons/nextgen/index.theme b/share/icons/nextgen/index.theme
new file mode 100644
index 000000000..5a7ed7623
--- /dev/null
+++ b/share/icons/nextgen/index.theme
@@ -0,0 +1,64 @@
+[Icon Theme]
+Name=nextgen
+Comment=next generation theme for inkscape
+Hidden=true
+Directories=scalable/actions,scalable/apps,symbolic/actions,symbolic/apps,16x16/apps,22x22/apps,24x24/apps,32x32/apps,48x48/apps,256x256/apps
+
+[scalable/actions]
+MinSize=8
+Size=16
+MaxSize=512
+Context=Actions
+Type=Scalable
+
+[scalable/apps]
+MinSize=8
+Size=16
+MaxSize=512
+Context=Applications
+Type=Scalable
+
+[symbolic/actions]
+MinSize=8
+Size=16
+MaxSize=512
+Context=Actions
+Type=Scalable
+
+[symbolic/apps]
+MinSize=8
+Size=16
+MaxSize=512
+Context=Applications
+Type=Scalable
+
+[16x16/apps]
+Context=Applications
+Size=16
+Type=Fixed
+
+[22x22/apps]
+Context=Applications
+Size=22
+Type=Fixed
+
+[24x24/apps]
+Context=Applications
+Size=24
+Type=Fixed
+
+[32x32/apps]
+Context=Applications
+Size=32
+Type=Fixed
+
+[48x48/apps]
+Context=Applications
+Size=48
+Type=Fixed
+
+[256x256/apps]
+Context=Applications
+Size=256
+Type=Fixed
+
diff --git a/src/inkscape.h b/src/inkscape.h
index ab6b65eac..897f9e296 100644
--- a/src/inkscape.h
+++ b/src/inkscape.h
@@ -124,7 +124,6 @@ public:
void switch_desktops_prev ();
void get_all_desktops (std::list< SPDesktop* >& listbuf);
void reactivate_desktop (SPDesktop * desktop);
- void readStyleSheets(bool forceupd = false);
SPDesktop * find_desktop_by_dkey (unsigned int dkey);
unsigned int maximum_dkey();
SPDesktop * next_desktop ();
diff --git a/src/live_effects/lpe-measure-segments.cpp b/src/live_effects/lpe-measure-segments.cpp
index 07ea6a707..27f5ce4bb 100644
--- a/src/live_effects/lpe-measure-segments.cpp
+++ b/src/live_effects/lpe-measure-segments.cpp
@@ -682,12 +682,11 @@ LPEMeasureSegments::doOnApply(SPLPEItem const* lpeitem)
// Style element not found, create one
styleNode = SP_ACTIVE_DOCUMENT->getReprDoc()->createElement("svg:style");
textNode = SP_ACTIVE_DOCUMENT->getReprDoc()->createTextNode("");
+ root->addChild(styleNode, nullptr);
+ Inkscape::GC::release(styleNode);
styleNode->appendChild(textNode);
Inkscape::GC::release(textNode);
-
- root->addChild(styleNode, nullptr);
- Inkscape::GC::release(styleNode);
}
Glib::ustring styleContent = Glib::ustring(textNode->content());
if (styleContent.find(".measure-arrows\n{\n") == -1) {
diff --git a/src/ui/dialog/selectorsdialog.h b/src/ui/dialog/selectorsdialog.h
index c12772e5a..6830a0124 100644
--- a/src/ui/dialog/selectorsdialog.h
+++ b/src/ui/dialog/selectorsdialog.h
@@ -130,7 +130,6 @@ class SelectorsDialog : public Widget::Panel {
StyleDialog *_style_dialog;
// Reading and writing the style element.
Inkscape::XML::Node *_getStyleTextNode();
- void _updateStyleSheets();
void _readStyleElement();
void _writeStyleElement();
diff --git a/src/ui/dialog/styledialog.h b/src/ui/dialog/styledialog.h
index 22d85620c..90b9d298f 100644
--- a/src/ui/dialog/styledialog.h
+++ b/src/ui/dialog/styledialog.h
@@ -123,7 +123,6 @@ class StyleDialog : public Widget::Panel {
// Reading and writing the style element.
Inkscape::XML::Node *_getStyleTextNode();
- void _updateStyleSheets();
void _readStyleElement();
Glib::RefPtr<Gtk::TreeModel> _selectTree(Glib::ustring selector);
void _writeStyleElement(Glib::RefPtr<Gtk::TreeStore> store, Glib::ustring selector);