<reponame>UntactOrder/UntactOrder.PosServer
# ///////////////////////////////////////////////////////////////
#
# BY: <NAME>
# PROJECT MADE WITH: Qt Designer and PySide6
# V: 1.0.0
#
# This project can be used freely for all uses, as long as they maintain the
# respective credits only in the Python scripts, any information in the visual
# interface (GUI) can be modified without any implication.
#
# There are limitations on Qt licenses if you want to use your products
# commercially, I recommend reading them on the official website:
# https://doc.qt.io/qtforpython/licenses.html
#
# ///////////////////////////////////////////////////////////////

# IMPORT PACKAGES AND MODULES
# ///////////////////////////////////////////////////////////////
import os


# APP FUNCTIONS
# ///////////////////////////////////////////////////////////////
# ---------------------------------------------------------------
# SET SVG ICON
# ///////////////////////////////////////////////////////////////
def set_svg_icon(icon_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/svg_icons/"
    path = os.path.join(app_path, folder)
    icon = os.path.normpath(os.path.join(path, icon_name))
    return icon


# SET SVG IMAGE
# ///////////////////////////////////////////////////////////////
def set_svg_image(icon_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/svg_images/"
    path = os.path.join(app_path, folder)
    icon = os.path.normpath(os.path.join(path, icon_name))
    return icon


# SET IMAGE
# ///////////////////////////////////////////////////////////////
def set_image(image_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/images/"
    path = os.path.join(app_path, folder)
    image = os.path.normpath(os.path.join(path, image_name))
    return image

# ///////////////////////////////////////////////////////////////
#
# BY: <NAME>
# PROJECT MADE WITH: Qt Designer and PySide6
# V: 1.0.0
#
# This project can be used freely for all uses, as long as they maintain the
# respective credits only in the Python scripts, any information in the visual
# interface (GUI) can be modified without any implication.
#
# There are limitations on Qt licenses if you want to use your products
# commercially, I recommend reading them on the official website:
# https://doc.qt.io/qtforpython/licenses.html
#
# ///////////////////////////////////////////////////////////////

# IMPORT PACKAGES AND MODULES
# ///////////////////////////////////////////////////////////////
import os


# APP FUNCTIONS
# ///////////////////////////////////////////////////////////////
# ---------------------------------------------------------------
# SET SVG ICON
# ///////////////////////////////////////////////////////////////
def set_svg_icon(icon_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/svg_icons/"
    path = os.path.join(app_path, folder)
    icon = os.path.normpath(os.path.join(path, icon_name))
    return icon


# SET SVG IMAGE
# ///////////////////////////////////////////////////////////////
def set_svg_image(icon_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/svg_images/"
    path = os.path.join(app_path, folder)
    icon = os.path.normpath(os.path.join(path, icon_name))
    return icon


# SET IMAGE
# ///////////////////////////////////////////////////////////////
def set_image(image_name):
    app_path = os.path.abspath(os.getcwd())
    folder = "res/gui/images/images/"
    path = os.path.join(app_path, folder)
    image = os.path.normpath(os.path.join(path, image_name))
    return image
# /////////////////////////////////////////////////////////////// # # BY: <NAME> # PROJECT MADE WITH: Qt Designer and PySide6 # V: 1.0.0 # # This project can be used freely for all uses, as long as they maintain the # respective credits only in the Python scripts, any information in the visual # interface (GUI) can be modified without any implication. # # There are limitations on Qt licenses if you want to use your products # commercially, I recommend reading them on the official website: # https://doc.qt.io/qtforpython/licenses.html # # /////////////////////////////////////////////////////////////// # IMPORT PACKAGES AND MODULES # /////////////////////////////////////////////////////////////// # APP FUNCTIONS # /////////////////////////////////////////////////////////////// # --------------------------------------------------------------- # SET SVG ICON # /////////////////////////////////////////////////////////////// # SET SVG IMAGE # /////////////////////////////////////////////////////////////// # SET IMAGE # ///////////////////////////////////////////////////////////////