mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-06 09:37:52 +00:00
fix: move to_slug_case into root
This commit is contained in:
parent
d12c44156b
commit
486e7880f6
2 changed files with 7 additions and 7 deletions
|
@ -13,3 +13,9 @@
|
|||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import re
|
||||
from anyascii import anyascii
|
||||
|
||||
def to_slug_case(non_slug):
|
||||
return re.sub(r"[^0-9a-z]+", "-", anyascii(non_slug).lower()).strip("-")
|
||||
|
|
|
@ -22,8 +22,6 @@ import os
|
|||
import re
|
||||
import traceback
|
||||
|
||||
from anyascii import anyascii
|
||||
|
||||
import gi
|
||||
from gi.repository import Gtk, Gdk, Gio, Adw, GLib, Xdp, XdpGtk4
|
||||
from material_color_utilities_python import *
|
||||
|
@ -37,11 +35,7 @@ from .custom_css_group import GradienceCustomCSSGroup
|
|||
from .constants import rootdir, app_id, version, bugtracker_url, help_url, project_url
|
||||
from .welcome import GradienceWelcomeWindow
|
||||
from .presets_manager_window import GradiencePresetWindow
|
||||
|
||||
|
||||
def to_slug_case(non_slug):
|
||||
return re.sub(r"[^0-9a-z]+", "-", anyascii(non_slug).lower()).strip("-")
|
||||
|
||||
from . import to_slug_case
|
||||
|
||||
class GradienceApplication(Adw.Application):
|
||||
"""The main application singleton class."""
|
||||
|
|
Loading…
Reference in a new issue