question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot resize icon

See original GitHub issue

Describe the bug Icon size is not being changed using pixmap

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/talentlessguy/QuarkPlayer
  2. Run yarn && yarn dev in one window, yarn start in another window
  3. See icon size is not being changed

Expected behavior I expected for icon to increase its size by changing width and height

Screenshots

image

Desktop (please complete the following information):

  • OS: Manjaro Linux x86_64
  • NodeGUI version: 0.5.1
  • React NodeGUI version: 0.2.2
  • OS Version: Plasma 5.17.2

Additional context

Code snippet where I try to resize icon:

import { QIcon } from '@nodegui/nodegui'
import icon from '../../assets/play.png'

const Icon = new QIcon(`${__dirname}/${icon}`)

Icon.pixmap(100, 100)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
a7ulcommented, Nov 28, 2019

Something like this :

import React from "react";
import { Renderer, Button, Window, View } from "@nodegui/react-nodegui";
import { QIcon, QSize } from "@nodegui/nodegui";

const icon = new QIcon(
  "/Users/atulr/Project/nodegui/react-nodegui/extras/assets/nodegui_white.png"
);

const App = () => {
  return (
    <Window>
      <View>
        <Button
          text={"Hello"}
          icon={icon}
          iconSize={new QSize(200, 200)}
        />
      </View>
    </Window>
  );
};
2reactions
a7ulcommented, Nov 28, 2019

iconSize prop is now available in 0.2.7 of react-nodegui for button, checkbox and radiobuttons

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resize icons and their spacing in Windows 7
Adjust icon size using the drop-down menu on the desktop ... Right-click on any empty space on the desktop and select the View...
Read more >
Cannot Resize Icons in Grid View Anymore : r/OpenEmu
There used to be an option where in Grid View you could change the size of the icons. it resided in the bottom...
Read more >
Cannot resize ICON component · Issue #3574 - GitHub
Unable to change the size of an Icon. This uses the react-native-vector-icons library which has a size prop. This doesn't.
Read more >
Can't resize some icons - Ask Ubuntu
1 Answer 1 ... Try: Right click on the icon and selection "Original Size", then attempt to resize again. Otherwise, move aside the...
Read more >
Can't CUSTOM resize icons in Icon Widget - WordPress.org
[This thread is closed.] Hello, I am trying to use the Icon Widget but I cannot seem to get the icons to adjust...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found