Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while parsing theme: element-icon{size:px;} Parser error: unexpected pixels #216

Closed
1 task done
aarushlohit opened this issue Feb 19, 2025 · 3 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@aarushlohit
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

System:
Host: archlinux Kernel: 6.13.2-arch1-1 arch: x86_64 bits: 64
Desktop: Hyprland v: 0.47.2 Distro: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X515EA_X515EA
v: 1.0 serial:
Mobo: ASUSTeK model: X515EA v: 1.0 serial:
UEFI: American Megatrends LLC. v: X515EA.314 date: 06/02/2023
Battery:
ID-1: BAT0 charge: 21.6 Wh (80.6%) condition: 26.8/37.1 Wh (72.3%)
volts: 7.8 min: 7.8
CPU:
Info: dual core model: 11th Gen Intel Core i3-1115G4 bits: 64 type: MT MCP
cache: L2: 2.5 MiB
Speed (MHz): avg: 1947 min/max: 400/4100 cores: 1: 1947 2: 1947 3: 1947
4: 1947
Graphics:
Device-1: Intel Tiger Lake-LP GT2 [UHD Graphics G4] driver: i915 v: kernel
Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
compositor: Hyprland v: 0.47.2 driver: X: loaded: modesetting dri: iris
gpu: i915 resolution: no compositor data resolution: 1920x1080
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Info: Tools: x11: xprop
Audio:
Device-1: Intel Tiger Lake-LP Smart Sound Audio driver: snd_hda_intel
API: ALSA v: k6.13.2-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.2.7 status: active
Network:
Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi
IF: wlan0 state: up mac: 70:32:17:de:f4:bd
Bluetooth:
Device-1: N/A driver: btusb type: USB
Report: btmgmt ID: hci0 state: up address: 70:32:17:DE:F4:C1 bt-v: 5.1
RAID:
Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
Drives:
Local Storage: total: 238.47 GiB used: 16.9 GiB (7.1%)
ID-1: /dev/nvme0n1 vendor: Micron model: 2450 MTFDKBA256TFK
size: 238.47 GiB
Partition:
ID-1: / size: 232.69 GiB used: 16.72 GiB (7.2%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot size: 1022 MiB used: 188 MiB (18.4%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: zram size: 3.73 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 47.0 C mobo: N/A
Fan Speeds (rpm): cpu: 2400
Info:
Memory: total: 8 GiB note: est. available: 7.46 GiB used: 2.68 GiB (35.9%)
Processes: 215 Uptime: 57m Shell: Zsh inxi: 3.3.37

KooL's Dots version

v2.3.11

Description

Issue:
Rofi fails to parse themes due to an invalid size:px; declaration in element-icon.
While pressing super + w its showing this error
Error Message: cant select wallpaper

Image

Error while parsing theme: element-icon{size:px;}
Parser error: unexpected pixels

How to reproduce

Sure! Here's the text version for your bug report:


Title: Rofi theme parsing error due to incorrect syntax in element-icon

Description:
Rofi fails to load the theme when there is an invalid syntax in the theme file, specifically in the element-icon section, such as an incorrectly specified size.

Steps to Reproduce:

  1. Download or Create the Faulty Theme File
    Save the following incorrect Rofi theme as faulty-theme.rasi:

    element-icon {
      size:px;  /* Incorrect syntax */
    }
    
  2. Apply the Theme in Rofi
    Run the following command in a terminal:

    rofi -show drun -theme faulty-theme.rasi
    
  3. Observe the Error
    Rofi will fail to parse the theme and return an error like:

    Error while parsing theme: element-icon{size:px;}
    Parser error: unexpected pixels
    

Expected Behavior:
Rofi should load the theme without syntax errors.

Actual Behavior:
Rofi fails due to an invalid size value in element-icon.


This should be good to go for a bug report submission!

install logs, images or videos

No response

@aarushlohit aarushlohit added the bug Something isn't working label Feb 19, 2025
@JaKooLit
Copy link
Owner

JaKooLit/Hyprland-Dots#562

same?

@dwilliam62
Copy link
Collaborator

I was about to say that. Install application bc and try again

@aarushlohit
Copy link
Author

Really thanks and i love your hyprdots really big fan of you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants